开发者

ruby on rails Updating multiple partial when using ajax with form_remote_for

I want to update more then one partial using the ajax form_remote_for helper

Currently I use this code which can update only one partial

form_remote_for :hour, @hour, :url =>{:action => "m开发者_StackOverflow社区anage" },:id =>'hoursForm',:update=>'hoursIndex' do |f

I will appreciate if someone can tell me how can I adjust the update parameter so it can update more the one partial


Rather than trying to do this with the :update argument to form_remote_for I would suggest you use an RJS template for your manage action. If you need a refresher on this technique see here

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜