开发者

ruby on rails Updating multiple partial when using ajax with form_remote_for

开发者 https://www.devze.com 2023-01-09 03:31 出处:网络
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

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

精彩评论

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