I have called the partial file form the loop. now when i update , i do not actually get updated result but need to do refresh for getting updated result. the code is like this :
the file1
@folders.each do |@folder|
= render :partial => 'folders/group_list'
the partial file
%div{:id => "group_list_#{@folder.id}"} // this is the div which needs to be updated
= group_member(@folder) //this is the helper method
I need the updated @folder from controller but I always get file1's @folder
controller side
def any_method
..
some code
..
@folder = Folder.find(params[:folder_id])
render :partial => '/folders/group_list'
end