ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Rolling with Ruby on Rails
Subject:   Homework #1 issues
Date:   2006-09-15 03:54:37
From:   StBob
Response to: Homework #1 issues

I've been laborating a bit with that stuff too and it seems like the destroy function want somekind of confirmation.



<%= link_to "Delete", {:action => "destroy", :id => recipe.id },
:confirm => 'Are you sure?', :post => true %>


This code works, I don't really know why, but I think it is because of the :post => true snippet.


I hope that helps.