Displaying 1 result from an estimated 1 matches for "view_by_title".
2005 Feb 19
5
Routing: How do I use what is left from an URL
...ve the full path of a page stored in the
database (column ''path''). I want to be able to have very short urls for
retrieving the pages, so i have this route in my map
map.connect ''-/:title'', :controller => ''page'',
:action => ''view_by_title'', :title => nil
so when I go to /-/PageTitle it gets me the page PageTitle. Pages can
have additional path prefixes, so I can have categories. For example
"/products" or "/articles/ruby/rails". Let''s say I have lots of
categories and I have many articles...