RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: rdpoor
Threre's a typo for a link in the ASCIIcast. In http://railscasts.com/episodes/279-understanding-the-asset-pipeline?view=asciicast in the first paragraph, "http://ryanbigg.com/guides/asset_pipeline.html" should be "http://guides.rubyonrails.org/asset_pipeline.html"
But that doesn't diminish the goodness of the episode -- thanks!
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]
?
Threre's a typo for a link in the ASCIIcast. In http://railscasts.com/episodes/279-understanding-the-asset-pipeline?view=asciicast in the first paragraph, "http://ryanbigg.com/guides/asset_pipeline.html" should be "http://guides.rubyonrails.org/asset_pipeline.html"
But that doesn't diminish the goodness of the episode -- thanks!
As written, the
routes.rb
file has something like this: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:
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
?