rjs variable substitution problem

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 [code=]def list_all   @group = TaskGroup.find(params[:id]) end [/code]

Here is the rjs script [code=]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}' [/code]

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

use “” instead of ‘’

I have changed things around so that, that particular rjs file is not used anymore, but I will remember your tip for next time around. I didn't think that ror was sensitive about quote types.

Thanks for your help.

I have changed things around so that, that particular rjs file is not used anymore, but I will remember your tip for next time around. I didn’t think that ror was sensitive about quote types.

Of course sensitive. “” will do replacement when needed, while ‘’ will not.