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 Build a Simple Ruby on Rails Application Frontend Development Updating the Index Page

Not 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
Maciej Czuchnowski
36,441 Points

Watch 6:42 again and look for a missing character in both lines.

Thanks I was missing the percent signs at