Forum: Ruby on Rails Routing question

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.
DanC (Guest)
on 2009-04-14 18:00
(Received via mailing list)
I have a resource for jobs on my application and I am familiar with
RESTful routes etc. I am also happy adding some custom routes to my

My question is, can I create an alias controller, i.e. instead of can I use  as the 'jobs'
isn't very intuitive for what the app is doing.

Can I do this in routes.rb so I don't have to create any files?

Better still would be to set up a sub-domain type route that worked
like =

Again I am unsure on whether this is possible.

Any advice or quality links to good resources would be appreciated


Tim (Guest)
on 2009-04-15 00:21
(Received via mailing list)
map.resources :jobs, :as => :alias

Hope that helps!
This topic is locked and can not be replied to.