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

I ran into trouble following the facebook app help!!!

I was following along and I had just created the authentication by jason, but when I had to create the customizing forms that's when I ran into trouble. I looked at the code, and went over the videos 3 times. I still don't see where I have the issue, because everything is the same as far as what Jim is changing.

The only page that works is http://localhost:3000/statuses/new . http://localhost:3000/users/edit works.

The page http://localhost:3000/statuses doesn't work. The page http://localhost:3000/users/sign_up doesn't work either.

The web page Should I maybe try doing something with the database? I am not 100% sure how to go about that yet.

NoMethodError in Statuses#index

Showing /Users/Anthony/Projects/treebook/app/views/statuses/index.html.erb where line #9 raised:

undefined method `full_name' for nil:NilClass Extracted source (around line #9):

6: 7: <% @statuses.each do |status| %> 8: <div class="status"> 9: <strong><%= status.user.full_name %></strong> 10: <p><%= status.content %></p> 11: <div class="meta"> 12: <%= link_to time_ago_in_words(status.created_at) + " ago", status %>

4 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Did you delete your statuses like Jim does in the video? That may be the issue.

I think that might be the problem, because that was the only thing I didn't do.

I seen a project a while back where I had to go to rails console and try to delete stuff that way, but I cant remember what I do after that if I had to do a rake db:rollback or something like that. It was so long ago. I could use any help.