开发者

How to submit formtastic via ajax?

开发者 https://www.devze.com 2023-02-18 15:05 出处:网络
So i have a form generated by formtastic and it\'s working : <%semantic_form_for(Model.new,:url=>{:action=>\"fooobar\"}) do |f|%>

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.


Got this working with semantic_remote_form_for

0

精彩评论

暂无评论...
验证码 换一张
取 消