简体   繁体   English

如何通过ajax提交formtastic?

[英]How to submit formtastic via ajax?

So i have a form generated by formtastic and it's working : 所以我有一个由formtastic生成的表单并且它正在工作:

<%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 我想知道是否有任何方式通过Ajax提交此表单

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一起工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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