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

Ruby on Rails Simple - Statuses Not Showing on Profile Page

Hello folks, Can't get any of the statuses assigned to a user to show up on their individual profile page.

The user's name is showing up so the top of the page is obviously working somewhat, but the entire section around showing statuses is not working (even though all of my tests through terminal are passing).

Here's the code from show.html.erb:

<div class="page-header"> <h1><%= @user.full_name %></h1> </div>

<% if @statuses %> <% @statuses.each do |status| %> <div class="well"> <%= status.content %> <hr /> <%= link_to time_ago_in_words(status.created_at), status_path(status) %> ago </div> <% end %> <% end %>

Greatly appreciate any help. Thank you!

2 Answers

IGNORE THIS ONE, FOLKS. I found the error in the profile controller. Just had the code in the wrong order.

Thank's for letting us know you got it sorted Terence, happy coding!