babygodzilla
2007-May-30 17:57 UTC
Bug? Filter chain halted as [#<ActionController::Filters::..
OK so I''ve been trying to follow the tutorial here: http://rails.homelinux.org/ When I simply do "scaffold: category" in the controller.rb, everything works fine. BUT after I generate the controllers and other files using scaffold AS A SCRIPT (script/generate scaffold categories), DESTROY (or DELETE) does not work for any record in a table. This is the error I got: Processing CategoriesController#destroy (for 127.0.0.1 at 2007-05-30 10:54:18) [GET] Session ID: 3289c7baf97c123bcf95994eff642d6e Parameters: {"action"=>"destroy", "id"=>"2", "controller"=>"categories"} Redirected to http://localhost:3000/categories/list Filter chain halted as [#<ActionController::Filters::ClassMethods::ProcFilter:0x352ec90 @filter=#<Proc:0x0230b770@/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/verification.rb:74>>] returned false. Completed in 0.00128 (782 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://localhost/categories/destroy/2] What does it mean? Any ideas if this is a bug on Rails or Ruby? Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
s.ross
2007-May-31 01:27 UTC
Re: Bug? Filter chain halted as [#<ActionController::Filters::..
The controller is verifying that destroy is invoked via post. A good thing because then Web crawlers won''t be likely to randomly delete rows from your database. But... it sounds like you have a link to destroy from your view and that link is issuing a get request. On May 30, 2007, at 10:57 AM, babygodzilla wrote:> > OK so I''ve been trying to follow the tutorial here: > http://rails.homelinux.org/ > > When I simply do "scaffold: category" in the controller.rb, everything > works fine. BUT after I generate the controllers and other files using > scaffold AS A SCRIPT (script/generate scaffold categories), DESTROY > (or > DELETE) does not work for any record in a table. This is the error I > got: > > > Processing CategoriesController#destroy (for 127.0.0.1 at 2007-05-30 > 10:54:18) [GET] > Session ID: 3289c7baf97c123bcf95994eff642d6e > Parameters: {"action"=>"destroy", "id"=>"2", > "controller"=>"categories"} > Redirected to http://localhost:3000/categories/list > Filter chain halted as > [#<ActionController::Filters::ClassMethods::ProcFilter:0x352ec90 > @filter=#<Proc:0x0230b770@/usr/local/lib/ruby/gems/1.8/gems/ > actionpack-1.13.3/lib/action_controller/verification.rb:74>>] > returned false. > Completed in 0.00128 (782 reqs/sec) | DB: 0.00000 (0%) | 302 Found > [http://localhost/categories/destroy/2] > > > What does it mean? Any ideas if this is a bug on Rails or Ruby? > > Thanks! > > -- > Posted via http://www.ruby-forum.com/. > > >Steve Ross sross-ju+vs0qJmyeQKKlA4PA9hA@public.gmane.org http://www.calicowebdev.com --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
fellons
2007-Jun-29 17:28 UTC
Re: Bug? Filter chain halted as [#<ActionController::Filters::..
Sorry ... i''m newbye. Can you explain for me more detailed ? Many many thank''s On 31 Mag, 03:27, "s.ross" <cwdi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The controller is verifying that destroy is invoked via post. A good > thing because then Web crawlers won''t be likely to randomly delete > rows from your database. But... it sounds like you have a link to > destroy from your view and that link is issuing a get request. > > On May 30, 2007, at 10:57 AM, babygodzilla wrote: > > > > > > > OK so I''ve been trying to follow the tutorial here: > >http://rails.homelinux.org/ > > > When I simply do "scaffold: category" in the controller.rb, everything > > works fine. BUT after I generate the controllers and other files using > > scaffold AS A SCRIPT (script/generate scaffold categories), DESTROY > > (or > > DELETE) does not work for any record in a table. This is the error I > > got: > > > Processing CategoriesController#destroy (for 127.0.0.1 at 2007-05-30 > > 10:54:18) [GET] > > Session ID: 3289c7baf97c123bcf95994eff642d6e > > Parameters: {"action"=>"destroy", "id"=>"2", > > "controller"=>"categories"} > > Redirected tohttp://localhost:3000/categories/list > > Filter chain halted as > > [#<ActionController::Filters::ClassMethods::ProcFilter:0x352ec90 > > @filter=#<Proc:0x0230b770@/usr/local/lib/ruby/gems/1.8/gems/ > > actionpack-1.13.3/lib/action_controller/verification.rb:74>>] > > returned false. > > Completed in 0.00128 (782 reqs/sec) | DB: 0.00000 (0%) | 302 Found > > [http://localhost/categories/destroy/2] > > > What does it mean? Any ideas if this is a bug on Rails or Ruby? > > > Thanks! > > > -- > > Posted viahttp://www.ruby-forum.com/. > > Steve Ross > s...-ju+vs0qJmyeQKKlA4PA9hBHnuRYL88vP@public.gmane.org://www.calicowebdev.com--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---