Hi, Im really new to rails and I am getting the error in the subject. I
have followed the steps in a tutorial and I still get this error, not
really sure why.
My routes file is:
Rails.application.routes.draw do
resources :towcompanies
root 'towcompanies#index'
end
Hi, Im really new to rails and I am getting the error in the subject. I
have followed the steps in a tutorial and I still get this error, not
really sure why.
My routes file is:
Rails.application.routes.draw do
resources :towcompanies
root 'towcompanies#index'
This might not affect anything but can you see if the error happens if you remove "resources :towcompanies", or reorder so the line with the root is first?
Tried restarting it, same thing, also tried the two things you mentioned
and get the same result. No idea why.
I posted the controller above like you requested, does it matter that
the actual controller file name is "tow_companies_controller.rb"? NOt
sure if the underscores affect anything.....