Skip to content

Instantly share code, notes, and snippets.

@gabrielmansour
Created September 17, 2010 07:07
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 gabrielmansour/583854 to your computer and use it in GitHub Desktop.
Save gabrielmansour/583854 to your computer and use it in GitHub Desktop.
load_and_authorize_resource :foo, :find_by => :name, :only => :show
load_and_authorize_resource :foo, :find_by => :id, :except => :show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment