When you define:
get 'carsBLAH/index'
By default Rails looks for index
action within CarsBLAHsController
. It would break if:
CarsBLAHsController
is not defined.CarsBLAHsController
exists butindex
method is not defined.
You could specify the controller
and action
to execute for a route with:
# executes CarsController#index
get 'carsBLAH/index', to: 'cars#index'
Suggest reading Rails Routing from the Outside In for details.