I am trying to create a route in Rails 3 that matching a url that
consists of a country region and the title of the story.
So a url would look something like this:
http://www.website.com/gb-this-is-the-title-of-the-story
I created the following route:
match ''/:region-:story'' => ''story#show'',
:as => :show
but in the above example I see in the server log it is matching it
like so:
Parameters: {"region"=>"gb-this-is-the-title-of-the",
"story"=>"story"}
How would you set this to use a non-greedy match on the hyphen so that
region will be "gb"?
Thanks in advance!
Mark
-- 
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.