views:

19

answers:

1

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 => "manage" },: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

+1  A: 

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

bjg
Thanks I think that is what I need
winter sun