Reputation: 1007
I have an app that I am working on, and there appear to be two key problems: due to a problem undetectable by me, the webapp I am working on returns the error "uninitialized constant Users" and the error "uninitiallized constant SubmitController." The code for the webapp is here. I have tried renaming multiple, possibly violating variables, and attempted to rid the app of the errors. However, I have not been sucessful. The code where the errors most likely originate are from app/views/users/show.html.erb, app/views/users/show.html.erb, app/controllers/user/submit.html.erb, app.controllers/user/submit_controller.rb, app/models/Submit.rb, app/models/user.rb, app/controllers/users_controller.rb, config/routes.rb.
Thanks in advance.
Upvotes: 0
Views: 754
Reputation: 774
You have error because you don't have SubmitsContoller. Also you need to move app/controller/users/submit.erb to views
folder. And one more rename file Submit.rb to submit.rb.
And to make it works create submit_controller.rb in controller folder.
Upvotes: 1