Rails 3.1: Asset pipeline with named routes?

A workaround is to use your route helpers from Rails.application.routes. Url_helpers e. G %= Rails.application.routes.

Url_helpers. Ajax_items_path %.

A workaround is to use your route helpers from Rails.application.routes. Url_helpers, e.g.

Thank you, thank worked perfectly! – gjb Sep 14 at 8:45.

It looks like named routes aren't available within the Asset Pipeline. If this is the case, what is the workaround? I really want to avoid hard-coding URLs in my Javascript.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions