GitHub User: rdpoor
As written, the routes.rb file has something like this:
routes.rb
get "log_out" => "sessions#destroy", :as => "log_out" get "log_in" => "sessions#new", :as => "log_in" resources :sessions
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.
resources :sessions
Am I correct?
With the default routing:
resources :products
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]
?
As written, the
routes.rbfile has something like this:The
resources :sessionsline 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:
resources :productsyou'll get routes for #new and #edit, which aren't used in a pure JSON interface. Is there a reason for NOT doing
?