Skip to content

Instantly share code, notes, and snippets.

@theconektd
Created December 11, 2008 08:08
Show Gist options
  • Save theconektd/34645 to your computer and use it in GitHub Desktop.
Save theconektd/34645 to your computer and use it in GitHub Desktop.
## config/router.rb
Merb.logger.info("Compiling routes...")
Merb::Router.prepare do
match("/(:args)", :args => /.*/).
to(:controller => "default", :action => 'index')
end
## app/controllers/default.rb
class Default < Application
def index(args)
args.inspect
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment