Skip to content

Instantly share code, notes, and snippets.

Created January 16, 2010 18:39
Show Gist options
  • Save anonymous/278944 to your computer and use it in GitHub Desktop.
Save anonymous/278944 to your computer and use it in GitHub Desktop.
ActionController::Routing::Routes.draw do |map|
# twitter app stuff
map.connect '/accounts/callback', :controller => 'accounts', :action => 'callback'
map.resources :accounts, :except => :do_update
map.resources :accounts, :member => { :show => :post }
map.resources :accounts, :member => { :do_update => :post }
map.resources :feeds
map.resources :feed_entries
# Install the default routes as the lowest priority.
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment