Forum: Ruby on Rails Bug? Filter chain halted as [#<ActionController::Filters::..

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
babygodzilla (Guest)
on 2007-05-30 21:57
OK so I've been trying to follow the tutorial here:

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

Processing CategoriesController#destroy (for at 2007-05-30
10:54:18) [GET]
  Session ID: 3289c7baf97c123bcf95994eff642d6e
  Parameters: {"action"=>"destroy", "id"=>"2",
Redirected to http://localhost:3000/categories/list
Filter chain halted as
returned false.
Completed in 0.00128 (782 reqs/sec) | DB: 0.00000 (0%) | 302 Found

What does it mean? Any ideas if this is a bug on Rails or Ruby?

Steve R. (Guest)
on 2007-05-31 05:28
(Received via mailing list)
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:

> actionpack-1.13.3/lib/action_controller/verification.rb:74>>]
> Posted via
> >

Steve R.
fellons (Guest)
on 2007-06-29 21:28
(Received via mailing list)
Sorry ... i'm newbye.
Can you explain for me more detailed ?

Many many thank's
This topic is locked and can not be replied to.