Rails 422: The change you wanted was rejected.
July 1, 2009
Hey everyone, I’ve been using routes in my Ruby on Rails to shorten URLs for users who share their meals on Twitter — http://mealstrom.com/379 is a lot shorter than http://www.mealstrom.com/meal/show/379. Producing nice-looking URLs is as simple as adding the following line to my routes.rb: map.connect ‘:id’, :controller => “meal”, :action => “show”, :requirements => { [...]
1