Consider the following ActiveAdmin page:
ActiveAdmin.register_page "Import" do
content do
form :action => some_path, :method => :post do |f|
f.input :name => :table, :collection => { "Display" => "id" }
end
end
end
Using this code anywhere within an ActiveAdmin resource works as you would expect, using FormBuilder to create a Formtastic form. When using AA's register_page method, however, and placing a form in the content section, it doesn't seem to work as hoped. Am I missing something or could this be something that's been overlooked? I might create the form in a partial rather than use AA's DSL, but it would be nicer to keep it within the AA resource.
Anyone got a clue why it won't play nice?