Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add formtastic input.

  • Loading branch information...
commit d648d9c64fb2e36fba40550944dc5aee8d7c821c 1 parent 5572e09
@ejholmes authored
View
5 app/inputs/active_admin/editor_input.rb
@@ -0,0 +1,5 @@
+class ActiveAdmin::EditorInput < Formtastic::Inputs::TextInput
+ def to_html
+ super
+ end
+end
View
9 test/dummy/app/admin/pages.rb
@@ -1,3 +1,10 @@
ActiveAdmin.register Page do
-
+ form do |f|
+ f.inputs do
+ f.input :title
+ f.input :content, as: :editor
+ end
+
+ f.buttons
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.