I what to route a request
/cart
to a controller in a module
Customer::CartController
after looking in the rails documentation the line of code in the routes.rb should be
get "cart" => "cart#index", :module => "customer", :as => :cart
but for some reason is not working. It keeps showing uninitialized constant CartController
Any idea how can i do this ?
:module => 'customer'should go to the scope call: