Skip to content

Instantly share code, notes, and snippets.

@btelles
Created August 7, 2010 21:05
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 btelles/513202 to your computer and use it in GitHub Desktop.
Save btelles/513202 to your computer and use it in GitHub Desktop.
module Reporter #:nodoc:
module Routing #:nodoc:
module MapperExtensions
def reporter
@set.add_route("/reporter/:id", {:controller => "reports", :action => "show"})
end
end
end
end
ActionController::Routing::RouteSet::Mapper.send :include, Reporter::Routing::MapperExtensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment