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 Customizing Forms Creating Relationships

Delete not working

code: this stopped working and brings up the show page instead?

<%= link_to devlog, method: :delete, data: { confirm: 'Are you sure you want to delete this log entry?' } do %>
            <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
          <% end %> 

from server terminal:

Started GET "/devlogs/2" for ::1 at 2015-06-05 18:56:11 -0700 Processing by DevlogsController#show as HTML Parameters: {"id"=>"2"} Devlog Load (1.0ms) SELECT "devlogs".* FROM "devlogs" WHERE "devlogs"."id" = ? LIMIT 1 [["id", 2]] Rendered devlogs/show.html.erb within layouts/application (0.0ms) Rendered shared/_header.html.erb (0.0ms) Rendered shared/_footer.html.erb (0.0ms) Completed 200 OK in 272ms (Views: 266.2ms | ActiveRecord: 1.0ms)

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Show us more code, especially the controller. Ideally thw hole project on github.