I've not watched the screencast, but I would assume that if you've put
that code in application.js it's not going to work.

the #{} and <%= %> tags are escapes for the code to be interpreted on
the server by ruby. application.js is interpreted on the client by
javascript. I suspect the code snippet needs to go between some
<script> tags in a ruby template.

--~--~---------~--~----~------------~-------~--~----~
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