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 `registration_path' #1773
Comments
For some reason, restarting the rails server fixed this issue. |
I'm having the same issue with the same Devise/Rails versions, but restarting the server doesn't change anything.
Furthermore, devise routes (not only the helpers) are only loaded if I edit the routes.rb file and save it (so it is reloaded). |
Full app reset fixed it ... should have been some other gem that screwed it up ! |
How do you do a full app reset? |
+1 Devise is not generating registration path using activeadmin |
@cpatil is correct. Restarting the rails server will fix the problem. Happened to me as well. |
I have the same issue, but restarting the rails server doesn't fix. In routes.rb, I have:
My view:
Error:
|
I updated the wiki page https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-password because it is slightly misleading if someone just wants to copy-paste the solution without updating devise views. The problem is the following, you define 'edit_sale_registration' route but if you use default devise edit.html.erb form then you end up with error because the form uses 'registration_path', while it should be 'sale_registration_path'. |
Thank You! |
thank you!!! |
Yes server re start worked me, but anyone would like to help me out with .. what caused the issue in the first place? |
I had run seems like Running |
Now I have problem within:
Trying to log in as facebook user and all the time I am redirected to devise sign up page. |
I found the reason in user.rb model I had one association belongs_to:somemodel and that I was put there for testing some model relations. So commenting this line I am logged in by facebook! |
I had the same issue as others had and restarting the rails server fixed the problem for me. |
Using devise 2.0.4 with Rails 3.2.2 and hitting /users/sign_up (development mode) , I get
undefined method `registration_path' for #<#<Class:0x007f936ab09c08>:0x007f936b049088>
Extracted source (around line #3):
1: <h2>Sign up</h2>
2:
3: <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
4: <%= devise_error_messages! %>
5:
6: <div><%= f.label :email %><br />
more info at - https://gist.github.com/2295672
The text was updated successfully, but these errors were encountered: