First time using devise I'm a little confused. I've followed a tutorial that manually goes through authentication so I have some understanding of Rails in this respect.
Normally when you create a scaffold for a User you get a Users controller with all the methods for showing, editing, adding etc. users, which can be accessed through the browser via http://localhost:3000/users/[action]
.
I have destroyed the User scaffold and started again with devise (rails generate devise User) but this does not create a controller at all. Going to http://localhost:3000/users/
gives the error No route matches [GET] "/users"
.
Am I supposed to create my own controller? Where do I go from here?
I think you did not initialized devise. You should probably run
rails generate devise:install
And then generate model for User by running
rails generate devise User
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.