Saturday, August 6, 2011

[Rails] 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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate