Skip to content

Devise 4.8.1 + Rails 7.0.0 | Undefined method 'user_url' #5439

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions