Forum: Ruby on Rails Access named routes outside controller or view

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Andrew E. (Guest)
on 2007-05-24 14:40

Could anyone advise if it's possible to access named routes in regular
class within a rails application.

I am working on a system to define menu structure with a rails app.
Rather than using something like :controller => user, :action => index
for each menu item, it would make things simpler if I could tap into the
named routes methods such as 'users_url' as generated by map.resources

I haven't quite got enough knowledge of rails framework to work this one
out yet.

Thanks, Andrew.
This topic is locked and can not be replied to.