Sergio Ruiz
2011-May-09 13:57 UTC
unobtrusive javascript -> referencing instance varaiables
if i have a variable, such as: @text declared in my controller, how would i go about dereferencing that in an .js.erb file? i seem to see a lot of pages using: <%= @text %> to directly dereference the value, but i can''t seem to get it to work.. i get invalid symbol errors (js errors) as soon as it hits "<%=".. any help? thanks! -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.