Hi,
I'm following the steps on
http://github.com/plataformatec/devise. I
did
rails generate devise:install
and
rails generate devise User
but I'm getting an error saying
NoMethodError in Devise/registrations#new
Showing ~/myapp/app/views/devise/registrations/new.html.erb where line
#3 raised:
undefined method `user_registration_path' for #<#<Class:0xb569fa68>:
0xb569e578>
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: <p><%= f.label :email %><br />
Here are some details -
http://gist.github.com/442433
Using Rails 3 beta 4 and Mongoid.
Any ideas why is this route helper undefined? There is
new_user_registration_path but no user_registration_path
rails console
irb(main):001:0> app.new_user_registration_path
irb(main):071:0" => "/users/sign_up"
irb(main):073:0> app.user_registration_path
NoMethodError: undefined method `user_registration_path' for
#<ActionDispatch::Integration::Session:0xb67210e4>
irb(main):074:0> app.registration_path
NoMethodError: undefined method `registration_path' for
#<ActionDispatch::Integration::Session:0xb67210e4>