Forum: Ruby on Rails Page navigation using named routes (need your help)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5f241b8cae62093f8888cfdb0895c60d?d=identicon&s=25 Jan =?ISO-8859-2?Q?Moli=E8?= (Guest)
on 2006-03-30 14:17
(Received via mailing list)
Hello,

I want to use named routes to create page navigation.
For instance I have these named routes:

map.homepage '/', ...
map.links '/links', ...
map.catalog '/products/catalog/', ...
map.catalog2 '/catalog/:year/', ...

And then have a map which defines navigation on the basis of the named
routes (just for imagination):

homepage: mysite > homepage
links: mysite > links
catalog, catalog2: mysite > products > catalog


My problem:

The only thing I need to know is the name of the current route, which
has
been distinguished from the current request. Can you help me, please?
Where can I get the name?

Thank you,
jan
This topic is locked and can not be replied to.