Trying to run through the book in Rails 4.0.1, hitting a problem in Chapter 10 Task E (A Smarter Cart) pp 126.
Attempting to access a non-existent cart (e.g. http://localhost:3000/carts/wibble) gives:
NameError in CartsController#show undefined local variable or method ‘store_url’ for #<CartsController:0x(session ID)>
and points to the following line in app/controllers/carts_controller.rb as the source:
redirect_to store_url, notice: 'Invalid cart'
How/where should ‘store_url’ be defined? The routes.rb contains (at this point in my depot app):
get "store/index" resources :carts resources :products resources :line_items root 'store#index'
Many thanks in advance, Jon.