Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialEric Jefcoat
2,946 PointsI am getting this error when trying to build new user registration page.
Hello all,
My thanks to anyone who can help with authentication part of building a basic web app in rails. Awesome stuff--I love it, but I got stuck.
I am getting the following error when trying to visit: localhost:3000/users/sign_up
I thought I got the directions from Installing Devise correct and even went back to check. I am running Rails v. 4.02 and there was one direction that said to only do it if deploying to Heroku with Rails 3.2, which I won't (Rails 4.02).
Any ideas?
Thank you so much, Eric
Here are the error messages:
(From the browser, when trying to load /users/sign_up.
NoMethodError in Devise::Registrations#new
Showing /usr/local/rvm/gems/ruby-1.9.3-p392/gems/devise-3.2.2/app/views/devise/registrations/new.html.erb where line #3 raised:
undefined method `registration_path' for #<#<Class:0x00000102c82d98>:0x00000103a9b128> Extracted source (around line #3): 1 2 3 4 5 6
<h2>Sign up</h2>
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> <%= devise_error_messages! %>
<div><%= f.label :email %><br />
I found this error message in the Terminal from when I was trying to load the users/sign_up page (I think).
ActionView::Template::Error (undefined method registration_path' for #<#<Class:0x00000102c82d98>:0x00000102c81f88>):
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 />
devise (3.2.2) app/views/devise/registrations/new.html.erb:3:in
usr_local_rvm_gems_ruby__pgems_devise____app_views_devise_registrations_new_html_erb625315643416976784_2170830360'