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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sat, Aug 6, 2011 at 2:21 AM, depassion <kevin.bett-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[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. On Aug 6, 11:42 am, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sat, Aug 6, 2011 at 2:21 AM, depassion <kevin.b...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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 tohttp://localhost:3000/transactions > > Completed 302 Found in 14ms > > Kevin, please post the actual Ruby code associated with the above queries. > > Thanks, > > -Conrad> -- > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
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:> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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 www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz ============================================================================== -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.