Skip to content

Instantly share code, notes, and snippets.

@baldwindavid
Created June 17, 2009 18:37
Show Gist options
  • Save baldwindavid/131410 to your computer and use it in GitHub Desktop.
Save baldwindavid/131410 to your computer and use it in GitHub Desktop.
# in config/routes.rb
map.blog "/blog", :controller => "blog"
map.blog "/blog/:id", :controller => "blog", :action => "show", :id => id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment