Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 3: Devise users_controller, where is it?

After I create a devise as Users, where is users_controllers.rb?

like image 781
donald Avatar asked Feb 26 '23 11:02

donald


1 Answers

Devise doesn't create a controller along with your model, so you have to generate it yourself:

rails g controller Users

Note that Devise uses its own internal controllers for things like session management and registrations. You can extend these, if you need to, but it is not mandatory.

like image 142
Matheus Moreira Avatar answered Feb 28 '23 01:02

Matheus Moreira