Skip to content

Instantly share code, notes, and snippets.

@andyferra
Created December 11, 2008 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyferra/34645 to your computer and use it in GitHub Desktop.
Save andyferra/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