Skip to content

Instantly share code, notes, and snippets.

@lazyatom
Created May 1, 2009 13:28
Show Gist options
  • Save lazyatom/105044 to your computer and use it in GitHub Desktop.
Save lazyatom/105044 to your computer and use it in GitHub Desktop.
ActionController::Routing::Routes.capture(:my_plugin_or_whatever) do |map|
map.resource :plugin_stuff
map.connect "/plugin/:blah", :controller => "whatever"
end
ActionController::Routing::Routes.draw do |map|
map.resource :app_things
map.include :my_plugin_or_whatever
# etc...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment