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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 9, '11 at 11:24a
activeNov 9, '11 at 11:24a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Yacine Z.: 1 post

People

Translate

site design / logo © 2022 Grokbase