Skip to content

Instantly share code, notes, and snippets.

@tooky
Created September 5, 2008 15:19
Show Gist options
  • Save tooky/8977 to your computer and use it in GitHub Desktop.
Save tooky/8977 to your computer and use it in GitHub Desktop.
r.match('/designer/:photo_id/crop').name(:cropper) do |cropper|
cropper.match(:method => :get).to(:controller => 'crops', :action => 'new')
cropper.match(:method => :post).to(:controller => 'crops', :action => 'create')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment