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 trialDomnick Knowlton
Courses Plus Student 2,437 PointsNoMethodError
I am getting a NoMethodError when trying to create a new status.
http://gyazo.com/e50d3ae178fd12ede6467d8d78cb44ad
Here is my file code in Devise.
<h2>Sign up</h2>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> <%= devise_error_messages! %>
<div class="field"> <%= f.label :first_name %> <br> <%= f.text_field :first_name %> </div>
<div class="field"> <%= f.label :last_name %> <br> <%= f.text_field :last_name %> </div>
<div class="field"> <%= f.label :profile_name %> <br> <%= f.text_field :profile_name %> </div>
<div class="field"> <%= f.label :email %><br /> <%= f.email_field :email, autofocus: true %> </div>
<div class="field"> <%= f.label :password %> <% if @validatable %> <em>(<%= @minimum_password_length %> characters minimum)</em> <% end %><br /> <%= f.password_field :password, autocomplete: "off" %> </div>
<div class="field"> <%= f.label :password_confirmation %><br /> <%= f.password_field :password_confirmation, autocomplete: "off" %> </div>
<div class="actions"> <%= f.submit "Sign up" %> </div> <% end %>
<%= render "devise/shared/links" %>
2 Answers
Brandon Barrette
20,485 PointsThe error is in your status form. The name column gets removed from the database and replaced with a user_id column. That code will eventually be deleted in later videos.
domckellar
20,999 PointsI had the same problem but just keep watching the "Getting the Latest Changes" video because they take care of this error and few others related to :name. Thanks Brandon!