Hello, I am looking for guidance, suggestions and best strategies on how to create readable, permanent URLs for my project. I have a project that serves up two types of pages: subject help guides course help guides So I need a URL for the list of subject guides and a URL for a list of course guides. I also need URLs for each individual course page and a URL for the individual subject guides that consist of multiple subject pages. I''ve been reading: http://www.w3.org/Provider/Style/URI I agree with this - but question the no-subjects in URLs guideline. http://www.useit.com/alertbox/990321.html Dated but good What are peoples ideas on good readable urls? I am wondering how to handle the ids - can I hide them with routes? Do people use the to params method? http://www.notsostupid.com/blog/2006/07/07/urls-on-rails/ http://plasmasturm.org/log/358/ How do I do the redirect with my routes. All the examples of redirecting with a 302 is from the old action to the new, but I want to redirect them when they enter /id-BULL! to /id-ba214 (see last link) Thanks for the help and I hope to get some good discussions. K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Julian Leviston
2008-Apr-10 05:17 UTC
Re: Custom Routes making permanent URLs with redirects
You could do the one where you say: http://someserver/this_link_will_never_change/some_id;this_part_is_disregarded_by_rails_and_can_be_anything_you_like Julian. Learn Ruby on Rails! Check out the FREE VIDS (for a limited time) VIDEO #3 out NOW! http://sensei.zenunit.com/ On 10/04/2008, at 3:05 PM, Kim wrote:> > Hello, > I am looking for guidance, suggestions and best strategies on how to > create readable, permanent URLs for my project. > > I have a project that serves up two types of pages: > subject help guides > course help guides > > So I need a URL for the list of subject guides and a URL for a list of > course guides. I also need URLs for each individual course page and a > URL for the individual subject guides that consist of multiple subject > pages. > > I''ve been reading: > http://www.w3.org/Provider/Style/URI > I agree with this - but question the no-subjects in URLs guideline. > http://www.useit.com/alertbox/990321.html > Dated but good > > What are peoples ideas on good readable urls? > I am wondering how to handle the ids - can I hide them with routes? > Do people use the to params method? > > http://www.notsostupid.com/blog/2006/07/07/urls-on-rails/ > http://plasmasturm.org/log/358/ > How do I do the redirect with my routes. All the examples of > redirecting with a 302 is from the old action to the new, but I want > to redirect them when they enter /id-BULL! to /id-ba214 (see last > link) > > Thanks for the help and I hope to get some good discussions. > K > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---