Reputation: 7307
I receive the following error when running the command heroku run rails c
. I've deployed to heroku and ran rake db:migrate
Error:
/app/controllers/Users/confirmations_controller.rb:1:in `<top (required)>': uninitialized constant Users (NameError)
Heroku has also found Devise in my gemfile.
remote: Using devise 3.5.2
I've got the following in routes.rb
devise_for :users, controllers: {
registrations: 'users/registrations'
}
And I've generated Devise Controllers which are located in app/controllers/users/
The first line of my confirmations_controller.rb
is
class Users::ConfirmationsController < Devise::ConfirmationsController
Any ideas on the problem?
Upvotes: 4
Views: 414
Reputation: 1989
Your confirmation_controller.rb
file should be under the users
directory, not Users
.
Upvotes: 6