Get taken route's name in a view?

Hi all

Is it possible to get the taken route’s name in a view? Something like

<%= taken_route %>

Thanks for help
Josh

On Nov 21, 7:31 am, Joshua M. [email protected]
wrote:

Hi all

Is it possible to get the taken route’s name in a view? Something like

<%= taken_route %>

Thanks for help
Josh

Posted viahttp://www.ruby-forum.com/.

how about:

http://svn.techno-weenie.net/projects/plugins/routing_navigator/README

http://www.artofmission.com/articles/2007/5/22/asking-models-for-their-url

Joshua M. wrote:

Isn’t there an easier way? I just want to know the name of the route
that Rails has followed… :-/

That would be quite useful, but AFAIK it doesn’t exist. It’s been
discussed, but no one has managed it yet.


Josh S.
http://blog.hasmanythrough.com

Josh S. wrote:

Joshua M. wrote:

Isn’t there an easier way? I just want to know the name of the route
that Rails has followed… :-/

That would be quite useful, but AFAIK it doesn’t exist. It’s been
discussed, but no one has managed it yet.


Josh S.
http://blog.hasmanythrough.com

Too bad. Maybe the new routing system I heard of will make things
better…? In the meanwhile I’ll have to help me using sorta
workaround…

Isn’t there an easier way? I just want to know the name of the route
that Rails has followed… :-/