Hi all, I have used url aliasing on my site. say suppose my url is domain/blog/1 to domain/blog/1/title in this i have succeded to redirect the url to a particular blog on its id with blog title, by defining the routes map.blog ''blog/edit/:id/:title'', :id=> ''id'', :controller => ''blog'', :action => ''show'' when i edit a particular blog it is giving me this error like Couldn''t find Service with ID=update means it is not getting the id for tht blog, so wht should i define in controller or in routes so tht i can take id of tht blog with title, ?????//>??? any help would be appreciated, Thanks a lot 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 -~----------~----~----~----~------~----~------~--~---
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 -~----------~----~----~----~------~----~------~--~---