Help :: Updateall method

Hi!
Unless i am missing something you want to make changes and save them back. I think you can collect all the ids of the projects using the collect statement in Ruby and then run a loop if request.post? with these id and for each textarea you can just use the Modelname.update method.
Thanks and regards,
Swanand.

i meant ids of all the projects for that particular resource.

Hi!
def yourmethodname
@all_project_id = @resource.projects.collect{|single_project| single_project.id}
if request.post?
for project_id in @all_project_id
Project.update(project_id,
:whatever_attribute => params[: #Give the name of the textbox with the
project_id appended to it]

     end
   end

end
Hope this helps,

Thanks and regards,
Swanand