Created
March 20, 2010 21:12
-
-
Save rbarazi/338912 to your computer and use it in GitHub Desktop.
[Beginning Rails 3] Listing 7-17. Adding session to routes.rb in config/routes.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blog::Application.routes.draw do | |
root :to => "articles#index" | |
resources :articles do | |
resources :comments | |
end | |
resources :users | |
resource :session | |
match '/login' => "sessions#new", :as => "login" | |
match '/logout' => "sessions#destroy", :as => "logout" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment