Pre-check
- Created a new rails-app with
rails new app-name -a propshaft -j importmap -c tailwind
- Added
gem 'devise', '~> 4.8', '>= 4.8.1' to Gemfile and followed installation instructions
Environment
- Ruby 3.0.3p157
- Rails 7.0.0
- Devise 4.8.1
Current behavior
- Receiving
NoMethodError (undefined method 'user_url' for #<Devise::RegistrationsController:0x0000000000d638>) upon successful user registration.
- User gets persisted in database
Demo app to reproduce the error is available here
Expected behavior
- Redirect to
root_path without error
Pre-check
rails new app-name -a propshaft -j importmap -c tailwindgem 'devise', '~> 4.8', '>= 4.8.1'toGemfileand followed installation instructionsEnvironment
Current behavior
NoMethodError (undefined method 'user_url' for #<Devise::RegistrationsController:0x0000000000d638>)upon successful user registration.Demo app to reproduce the error is available here
Expected behavior
root_pathwithout error