-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `users_url' for #<Devise::RegistrationsController:0x00000005018470> #2457
Comments
Can you provide the stacktrace? You don't provide a |
Just learned what is the stacktrace: NoMethodError - undefined method |
Looking at the stacktrace, we can see this:
It seems this one is the culprit as it is trying to generate a url for the user model, and such url does not exist. So you should either get rid of this dependency or define the route to make it happy. |
I deleted ajaxify gem from Gemfile, but same error occurs. NoMethodError - undefined method script/rails:0:in `' |
Oops, sorry then. I will take a further look! |
Tryin to sign in with omniauth facebook: RuntimeError - Devise trackable could not save #<User id: 22, email: "[email protected]", encrypted_password: "$2a$10$2KQ1xz6MncwCeAkYpQ46PuUigwpbfZKayllNRzlqACe0...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 1, current_sign_in_at: "2013-06-07 14:38:02", last_sign_in_at: "2013-06-07 14:38:02", current_sign_in_ip: "127.0.0.1", last_sign_in_ip: "127.0.0.1", created_at: "2013-06-07 14:38:02", updated_at: "2013-06-07 14:38:02", admin: nil, provider: "facebook", uid: "100000665750510", name: "Barna Kovács", oauth_token: nil, oauth_expires_at: nil>.Please make sure a model using trackable can be saved at sign in.: |
Problem solved: after_create a Profile was created with User. Wrong argument was passed, and the :slug of Profile wasn't unique, that fired a false or nil somewhere which ended in an unsaved user. Devise works perfectly :) |
I'm running into this again, with a fresh project started with rails-7.0.0.rc1, and devise installed and set up exactly following https://stucklucky.medium.com/how-to-set-up-rails-devise-5bd39732629f . The stack trace from the logs:
|
I have the same error above, there is any solution founded guys ?
|
hey @martindemello @zaouch-bahae-eddine , looks like this issue (present in rails 7) is being tackled here: #5439 |
In config/devise.rb include line: |
great @SalomaoMiguel thank u!!! |
thank you, @SalomaoMiguel. |
Thanks @SalomaoMiguel this works for rails 7 |
if you have devise.rb is in initializer folder, you can add this: |
I get this error with my app:
https://github.com/gwuix2/anabol
On user registration with devise.
With omniauth facebook login everything works.
I opened a stackoverflow question on it:
http://stackoverflow.com/questions/16971357/devise-undefined-method-users-url-for-deviseregistrationscontroller0x0000
The text was updated successfully, but these errors were encountered: