Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: rdpoor
As written, the routes.rb file has something like this:
get "log_out" => "sessions#destroy", :as => "log_out"
get "log_in" => "sessions#new", :as => "log_in"
The resources :sessions line defines the full set of RESTful routes for SessionsController, but because of the first two lines, you don't need them.
Am I correct?
With the default routing:
you'll get routes for #new and #edit, which aren't used in a pure JSON interface. Is there a reason for NOT doing
resources :products, :except => [:new, :edit]