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
Hanif Khairudin
2,818 PointsRuby on Rails Problem
- Stage:
Programming Build a Simple Ruby on Rails Application Frontend Development Updating the Index Page
- I got error when running these codes: (NoMethodError in Statuses#index)
<div class="page-header">
<h1>All of the Statuses</h1>
</div>
<% @statuses.each do |status| %>
<div class="status">
<strong><%= status.name %></strong>
<p><%= status.content %></p>
</div>
<% end %>
- I follow exactly like the tutorial. Any advices? Thank you
1 Answer
Hanif Khairudin
2,818 PointsProblem solved after few trial and error.
The problem is the correct method is "status.context", rather than "status.content".
Thank you Randall for your concern
Randall Larson
1,164 PointsRandall Larson
1,164 PointsCan you provide more detail regarding the error?