map.resources :jobs, :as => :alias
Hope that helps!
Tm
On Apr 14, 6:59 am, DanC
<d.m.coleg...-VlwAjOFxKoqFxr2TtlUqVg@public.gmane.org>
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---