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
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…
Does the upper/lower case make any difference?
Any other ideas???
I appreciate your help!
Johnny Hu wrote in post #1181706:
Secondarily, did you have a web server running already? If so, maybe try
restarting it?