I am using Devise in Rails to help authenticate users. I am trying to create users within the system. I created a scaffold (just for the auto-generated code) Employee, and I changed the table in the employees_controller.rb to User. When I list the employees, it correctly lists the users. But when I attempt to add a new user, it gives me the error:
undefined method `users_path' for #<#<Class:0x7fb289704bd8>:0x7fb289702540>
It gives me the error for the line:
<%= form_for(@employee) do |f| %>
What can I do to allow this to work correctly?
I wouldn’t use scaffolding for your user model when implementing devise. However, if you use scaffolding, I would create that first and then follow this tutorial for adding devise to that model.