Reputation: 1226
I am using active admin in my application. I came across a situation where I want to add a form in the default resource page along with index. So what I did is ,
ActiveAdmin.register Post do index do column : mycolumn panel 'Enter Details' do render partial : 'my semantic form' end end end
My semantic form has 2 drop down fields and a submit button. On clicking the submit button an action has to be called .What happens here is the inputs are displayed clumsy
1. Is there a way to display the form elements in expected way
2. I don't know where to define the form action upon clicking the submit button
Upvotes: 3
Views: 935
Reputation: 2978
I don't recommend doing this, but if you really must take a look at this article on adding popup modals to the index page. There are some additional articles on the wiki.
Upvotes: 1