Skip to content

Instantly share code, notes, and snippets.

@benburkert
Created September 8, 2008 06:34
Show Gist options
  • Save benburkert/9384 to your computer and use it in GitHub Desktop.
Save benburkert/9384 to your computer and use it in GitHub Desktop.
Merb::Router.prepare do
match("/hello") do
match("world").to(:controller => "worlds", :action => "hello") # matches /helloworld
match("there").to(:controller => "theres", :action => "hello") # matches /hellothere
end
default_routes
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment