URL aliasing

Naresh Rana
Mon, 11 Feb 2008 09:47:03 -0000

HI all,

I want to implement pretty URL, say suppose my url like this

domain/services/1/title-of-this-id

i have changed my routes to this,
map.services ''services/:id/:title'', :controller =>
''services'', :action
=> ''show''

then it is working fine, but

i want to make my url look like this,,,

/domain/services/date/title-of-id

eg: domain/services/2008/01/01/title-of-this-service

Note: date i want in format of YYYY/MM/DD

Thanks in advance

Naresh Rana
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---