Can't destroy record

so when attempting to destroy a record i get this in the server log
output:

AREL (0.4ms) DELETE FROM "items" WHERE "items"."id" = 39
Started GET "/items/20" for 127.0.0.1 at 2011-08-06 10:59:27 +0200
AbstractController::ActionNotFound (The action 'show' could not be
found for ItemsController):

but a normal destroy should look like this:

Started DELETE "/transactions/3" for 127.0.0.1 at 2011-08-06 11:06:03
+0200
  Processing by TransactionsController#destroy as HTML
  Parameters: {"authenticity_token"=>"FNi4GDXZGn3yJNXZanNZ3J/
vggiMeR7zb/hpmf66s3U=", "id"=>"3"}
  Transaction Load (0.1ms) SELECT "transactions".* FROM
"transactions" WHERE "transactions"."id" = ? LIMIT 1 [["id", "3"]]
  SQL (0.4ms) DELETE FROM "transactions" WHERE "transactions"."id"
= ? [["id", 3]]
Redirected to http://localhost:3000/transactions
Completed 302 Found in 14ms

so when attempting to destroy a record i get this in the server log

output:

AREL (0.4ms) DELETE FROM “items” WHERE “items”.“id” = 39

Started GET “/items/20” for 127.0.0.1 at 2011-08-06 10:59:27 +0200

AbstractController::ActionNotFound (The action ‘show’ could not be

found for ItemsController):

but a normal destroy should look like this:

Started DELETE “/transactions/3” for 127.0.0.1 at 2011-08-06 11:06:03

+0200

Processing by TransactionsController#destroy as HTML

Parameters: {“authenticity_token”=>"FNi4GDXZGn3yJNXZanNZ3J/

vggiMeR7zb/hpmf66s3U=", “id”=>“3”}

Transaction Load (0.1ms) SELECT “transactions”.* FROM

“transactions” WHERE “transactions”.“id” = ? LIMIT 1 [[“id”, “3”]]

SQL (0.4ms) DELETE FROM “transactions” WHERE “transactions”.“id”

= ? [[“id”, 3]]

Redirected to http://localhost:3000/transactions

Completed 302 Found in 14ms

Kevin, please post the actual Ruby code associated with the above queries.

Thanks,

-Conrad

[SOLVED] sorry, i forgot that you do actually need some kind of js
framework. After removing prototype i didn't replace it with jQuery,
but now that i have the destroy action works fine.

thanks.

and source of your controller/view?
do you have :method => :delete in your link to delete?

tom