Skip to content

Instantly share code, notes, and snippets.

@felix
Created November 6, 2008 06:58
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 felix/22532 to your computer and use it in GitHub Desktop.
Save felix/22532 to your computer and use it in GitHub Desktop.
identify Package => :id do
match('/:listing/packages').with(:controller => 'packages') do
authenticate do
match('/new', :method => :get ).to(:action => 'new').name(:new_listing_package)
end
match('/:package/edit', :method => :get ).to(:action => 'edit').name(:edit_listing_package)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment