I am not sure this is such a good idea. Your js, ideally, will be
concatenated and compressed and cached. Anything variable ought to be
in the HTML, since that changes more frequently, and your js should
simply look for the variable within the page and act upon it in the DOM.
Walter
first it will be processed by ERB then CoffeeScript
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/oTzNpWJ1mgsJ.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>