map.resources :jobs, :as => :alias Hope that helps! Tm
On Apr 14, 6:59 am, DanC <[email protected]> wrote: > 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 > controller. > > My question is, can I create an alias controller, i.e. instead > ofwww.mysite.com/jobscan I usewww.mysite.com/alias 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 alias.mysite.com = mysite.com/jobs > > Again I am unsure on whether this is possible. > > Any advice or quality links to good resources would be appreciated > > Regards, > > Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

