I want to do something like this in a link_to_remote call in a view

:before => '$$("tr#task_#{completed_task.id} >
td.task-title-cell").update("Reactivating")'

but the number of ' and " in the string are not allowing  my
#{completed...} to work. Its just being read as characters and not as a
request to insert the value of the contained variable.

How do i get round this and are there any tips for this? people must be
using #{} within their prototype code a lot and it must look messy. is
there a cleaner way?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to