Hoping that this isn't too trivial for creating a new ticket:
before_filter { |controller| return false if controller.paramsstop_action? }
returns a thread-error, IMHO should be:
before_filter(lambda { |controller| return false if controller.paramsstop_action? })
or (as suggested by Duane Johnson on the mailing-list):
before_filter { |controller| false if controller.paramsstop_action? }
an appropriate diff:
--- filters_back.rb 2005-05-12 15:13:26.983922176 +0200
+++ filters.rb 2005-05-12 15:13:46.053023232 +0200
@@ -69,7 +69,7 @@
# Or just as a quick test. It works like this:
#
# class WeblogController < ActionController::Base
- # before_filter { |controller| return false if controller.params["stop_action"] }
+ # before_filter { |controller| false if controller.params["stop_action"] }
# end
#
# As you can see, the block expects to be passed the controller after it has assigned the request to the internal variables.