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

Ruby

Lisa Rossiter
Lisa Rossiter
3,630 Points

NoMethodError: undefined method `full_name' for nil:NilClass

I only get this error in my test database and cannot figure it out please help. I am getting a few errors simular to this and cannot figure it out. I am so close to saying f** testing the actual app works. :)

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

So when you run the application and display the full_name in the views, it works fine? Can you post your user model and view code that uses full_name, and also your gemfile? And please use markup to format the code properly (see Markdown Cheatsheet below).

Also, is that treebook app?