Skip to content

Instantly share code, notes, and snippets.

@tooky
Created Sep 5, 2008
Embed
What would you like to do?
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