'Attempting to register a user on my devise app causes undefined method `user_url' for #<Devise::RegistrationsController:0x00000000020ee0>

I am still getting this error when I'm trying to register new user, but I can log in to created user after refreshing page.

Here is code which I'm getting on the screen

            if options.empty?
              recipient.public_send(method, *args)
            else
              recipient.public_send(method, *args, options)
            end

I tried to add

    config.navigational_formats = ['*/*', :html, :turbo_stream]

It's suggested into Attempting to register a user on my devise app causes undefined method `user_url' for #<Devise::RegistrationsController:0x0000000000d9d0> but it won't help me, could you give me any other suggestions ?



Solution 1:[1]

Try adding

data: {tubro: false}

to your signup and login page button. eg :

<%= f.submit "Sign up", data: { turbo: false } %>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Akshit Thakur Ak