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 trial
Patrick Gellar
3,365 Pointsrails app issue undefined method
undefined local variable or method `first_name' for #<User:0x3ccb8c8>
Extracted source (around line #19):
16: </ul>
17: <ul class="nav pull-right">
18: <% if user_signed_in? %>
19: <li><%= link_to current_user.full_name, edit_user_registration_path %></li>
20: <li><%= link_to "Log Out", destroy_user_session_path, method: :delete %><li>
21: <% else %>
22: <li><%= link_to "Register", new_user_registration_path %></li>
4 Answers
James Barnett
39,199 PointsI don't see a question here, just a copy/pasted error message.
Patrick Gellar
3,365 PointsApologies. I was trying to figure out what was causing this issue so I could remedy it and I forgot to put it into question form. It was ultimately a migration issue and I fixed it by doing rake db:reset.
James Barnett
39,199 PointsRock on with your bad self for solving your own issue
Dan Pereda
968 PointsFor others I fixed my issue by running rake db:reset then rake db:migrate. you may have to put bundle exec in front of those commands.