I keep getting javascript alerts messages basically telling me that it
can’t find the element. It obviously has something to do with the
group.id value not being put in it’s place properly.
here is the action method
def list_all
@group = TaskGroup.find(params[:id])
end
Here is the rjs script
page.hide 'task_group-#{group.id}'
page.replace_html 'task_group-#{group.id}', :partial => "tasks/
task", :collection => @group.tasks
page.visual_effect :blind_down, 'task_group-#{group.id}'
I have tried with and without the @, and am somewhat confused when to
use the #{} vs the <%= %>, I am assuming rls files always use the #{}
since most of the examples that I have seen use it that way.
Thanks for the help