Search code examples
ruby-on-railsformtasticremote-forms

How to submit formtastic via ajax?


So i have a form generated by formtastic and it's working :

<%semantic_form_for(Model.new,:url=>{:action=>"fooobar"}) do |f|%>
<%end%>

i was wondering if there's any way to submit this form via Ajax like

remote_semantic_form_for

or

semantic_remote_form_for

because I have full functionality but it'll be a lot better if i don't have to reload the page on every submit.

Thanks.


Solution

  • Got this working with semantic_remote_form_for