Jhonny
2007-Sep-05 04:44 UTC
I had a very basic question as to, how does rails encodes URl''s ?
Hi, I had a very basic question as to, how does rails encodes URl''s ? Eg. 1> http://my.shop.com/store/show_product/123 and in 2> http://my.blog.com/blog/2005/07/04 Regards, Piyush Gupta 99161-33729 http://ctrlshiftesc.blogspot.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 -~----------~----~----~----~------~----~------~--~---
Jamal Soueidan
2007-Sep-05 08:57 UTC
Re: I had a very basic question as to, how does rails encode
Piyush Gupta wrote:> Hi, > > I had a very basic question as to, how does rails encodes URl''s ? > > Eg. > > 1> http://my.shop.com/store/show_product/123 > > and in > > 2> http://my.blog.com/blog/2005/07/04 > > > > > > Regards, > > Piyush Gupta > > 99161-33729 > > http://ctrlshiftesc.blogspot.com/You basically use config/route.rb :) blog/:year/:month/day something like that, and then you can put the requirements if you want so.. -- 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 -~----------~----~----~----~------~----~------~--~---