Skip to content

Instantly share code, notes, and snippets.

@coolaj86
Created April 25, 2010 22:47
Show Gist options
  • Save coolaj86/378794 to your computer and use it in GitHub Desktop.
Save coolaj86/378794 to your computer and use it in GitHub Desktop.
map.connect 'lists/:fbuid',
:controller => 'lists',
:action => 'index',
:conditions => { :method => :get }
map.connect 'lists/:fbuid',
:controller => 'lists',
:action => 'create',
:conditions => { :method => :post }
map.connect 'lists/:fbuid/:asin',
:controller => 'lists',
:action => 'update',
:conditions => { :method => :put }
map.connect 'lists/:fbuid/:asin',
:controller => 'lists',
:action => 'destroy',
:conditions => { :method => :delete }
map.connect 'lists/:fbuid/:asin',
:controller => 'lists',
:action => 'show',
:conditions => { :method => :get }
map.connect 'lists/:fbuid',
:controller => 'lists'
map.connect 'lists/:fbuid/:asin',
:controller => 'lists'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment