ruby on rails 3 - ActiveAdmin with client side validation? -


how can set activeadmin forms use client side validation? more specifically, how pass :validate => true option client side validation needs form method specified in active admin?

i guess way use activeadmin form partials http://activeadmin.info/docs/5-forms.html

  activeadmin.register post     form :partial => "form"   end 

/app/views/admin/posts/_form.hrml.erb

  <%= semantic_form_for [:admin, @post], remote: true, validate: true |f| %>     <%= f.inputs :title, :body %>     <%= f.actions :commit %>   <% end %> 

edit if form in activeadmin in partial want customize, can use rails form builder form_for instead of semantic_form_for:

<%= form_for @post, :validate => true |f| %>   <%= f.submit 'submit' %> <% end %> 

Comments