Whenever I try to access the index method of my user controller, I get an error from rails that says the following:
Unknown action The action 'show' could not be found for UsersController
My routes.rb file does not have a route to show, but it does have one to index. Even when I enter localhost:3000/users/index into my url bar, I still get the same issue.
I have been looking for an answer to this question for hours and have still had no luck.
EDIT:
I took the advice to route with get 'users/index' => 'users#index', but that did not help. The index.html.erb is in the right place. I have an index method defined in my users_controller.rb
The section of my routes.rb:
get 'users/index' => 'users#index'
get 'users/sign_up_partial'
post 'users/create'