Skip to content

Instantly share code, notes, and snippets.

@hassox
Created October 7, 2008 22:42
Show Gist options
  • Save hassox/15406 to your computer and use it in GitHub Desktop.
Save hassox/15406 to your computer and use it in GitHub Desktop.
Merb::Router.prepare do
# RESTful routes
# resources :posts
identify Post => :permalink do
resources :posts
match("/").to(:controller => "posts")
end
end
url(:post, @post) #> generates /posts/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment