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 trialYasir Ali
1,074 PointsNot showing edit and delete option?
As the video says, that's exactly what I did
<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 class="meta"> <%= link_to "Show", status %>
<span class="admin"> <% link_to "Edit", edit_status_path(status) %> <% link_to "Delete", status, method: :delete, data: { confirm: "Are you sure?"} %> </span> </div> </div> <% end %>
But when I save the file on sublime and run it, the edit and delete option aren't there. For some reason teamtree house is not letting me put the entire code
1 Answer
Maciej Czuchnowski
36,441 PointsWatch 6:42 again and look for a missing character in both lines.
Yasir Ali
1,074 PointsYasir Ali
1,074 PointsThanks I was missing the percent signs at