Permalink
Browse files

Add formtastic input.

  • Loading branch information...
1 parent 5572e09 commit d648d9c64fb2e36fba40550944dc5aee8d7c821c @ejholmes committed Apr 30, 2012
Showing with 13 additions and 1 deletion.
  1. +5 −0 app/inputs/active_admin/editor_input.rb
  2. +8 −1 test/dummy/app/admin/pages.rb
@@ -0,0 +1,5 @@
+class ActiveAdmin::EditorInput < Formtastic::Inputs::TextInput
+ def to_html
+ super
+ end
+end
@@ -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

0 comments on commit d648d9c

Please sign in to comment.