Skip to content

Instantly share code, notes, and snippets.

@senny
Created February 14, 2013 09:03
Show Gist options
  • Save senny/4951454 to your computer and use it in GitHub Desktop.
Save senny/4951454 to your computer and use it in GitHub Desktop.
CONTROLLER environment variable to filter routes
» rake routes
root GET / pages#home
» export CONTROLLER='non-existing-controller'
» rake routes
» unset CONTROLLER
» rake routes
root GET / pages#home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment