Skip to content

Instantly share code, notes, and snippets.

@baileylo
Created October 15, 2010 07:19
Show Gist options
  • Select an option

  • Save baileylo/627764 to your computer and use it in GitHub Desktop.

Select an option

Save baileylo/627764 to your computer and use it in GitHub Desktop.
Modifying routes
LoginApp::Application.routes.draw do
resources :boards do
resources :conversations
end
root :to => "boards#index"
resources :users, :user_sessions
match 'login' => 'user_sessions#new', :as => :login
match 'logout' => 'user_sessions#destroy', :as => :logout
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment