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
On Sat, Aug 6, 2011 at 2:21 AM, depassion [email protected] wrote:
Started DELETE “/transactions/3” for 127.0.0.1 at 2011-08-06 11:06:03
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
On Aug 6, 2011, at 11:21 , depassion wrote:
Started DELETE “/transactions/3” for 127.0.0.1 at 2011-08-06 11:06:03
–
You received this message because you are subscribed to the Google G. “Ruby
on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
–
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache