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-/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.