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
remote_semantic_form_for
or
或
semantic_remote_form_for
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.
谢谢。
1 个解决方案
#1
4
Got this working with semantic_remote_form_for
让它与semantic_remote_form_for一起工作
#1
4
Got this working with semantic_remote_form_for
让它与semantic_remote_form_for一起工作