简体   繁体   中英

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.

得到了这个与semantic_remote_form_for一起工作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM