When you run the heroku run rails c command, the following error appears. I turned to the hero and ran rake db:migrate
Error:
/app/controllers/Users/confirmations_controller.rb:1:in `<top (required)>': uninitialized constant Users (NameError)
Heroku also found Devise in my gemfile.
remote: Using devise 3.5.2
I have the following in routes.rb
devise_for :users, controllers: { registrations: 'users/registrations' }
And I created Devise Controllers which are in app/controllers/users/
The first line of my confirmations_controller.rb is
class Users::ConfirmationsController < Devise::ConfirmationsController
Any ideas on the issue?
source share