Skip to content

Instantly share code, notes, and snippets.

@lmarburger
Created July 6, 2009 17:07
Show Gist options
  • Save lmarburger/141539 to your computer and use it in GitHub Desktop.
Save lmarburger/141539 to your computer and use it in GitHub Desktop.
map.resource :session, :collection => { :forgot_password => :post, :sign_out => :get } do |session|
session.connect 'reset_password/:token', :controller => 'sessions', :action => 'reset_password'
session.connect 'activate_account/:token', :controller => 'sessions', :action => 'activate_account'
end
map.resource :cart, :collection => { :expired => :get } do |cart|
cart.resource :checkout, :collection => [ :pickup_order, :update_shipping_address, :update_shipping_method, :update_payment ] do |checkout|
checkout.resources :complete, :only => :show
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment