Hi, I'm facing an issue with my js.erb files. When I want to use some named routes inside my js.erb files (placed in the asset/javascript folder) I get an error when I try to precompile the files .ie:
undefined method `search_url' for #<Module:0x101df43bf> How could I use my named route in my js.erb files? Conf: Rails 3.1.1 -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.