Try adding a :method => :delete to the link. If you're using default
resource routes, that should do the trick (also you don't need to
use :action => 'destroy', but can instead pass discount_url(discount)
as :url.

 -- niklas

On Tue, 2011-03-01 at 07:22 -0800, Anthony wrote:
> Hello, I'm trying to create a link to delete the record of a discount
> in my database. I have a page that lists them, each one rendered in a
> partial with a delete link. I'm trying link_to_remote, but it gives me
> this errors:
> 
> No method responded to 28 (which is the record id)
> 
> Here is a link to my code:
> 
> http://pastie.org/private/s1m8ddsb27fyad8z1rhyg
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to