Re: find() performance

Brandon S.
Mon, 05 Feb 2007 20:40:05 -0000

sness wrote:
> And the URL it generates would look like:
>
> /articles/show/76-omg-my-cat-is-so-cute-lol

Is there a way to add a route that drops the "show" from the URL?
I''m
using this route to drop "show" from the URL, but it only works if the
:id part of the URL is an integer:

map.connect '':controller/:id'', :action =>
''show'', :requirements => { :id
=> /\d+/ }

Any help is appreciated.

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