Where can I find documentation for the arguments passed to the block of the before_filter method in Rails?
===

In another question here on stackoverflow ([rails 3 custom mime type - default view format][1]) another person used a rather interesting solution for rendering plain HTML. In his solution, he passed a block to the `before_filter` method and used methods such as `action_has_layout` to manipulate the object passed to the block. I checked the [official rails documentation][2] for these methods, but didn't find them. Would any of you happen to know where I can find the documentation for those methods? (Another, better answer for the question I referenced would be great too if you know of one.)

Here are some of the methods in question:

 1. `controller.action_has_layout=`
 2. `controller.request.format=`
 3. `controller.collect_mimes_from_class_level`

I'd be grateful for any help you can give me.

  [1]: http://stackoverflow.com/questions/4769058/rails-3-custom-mime-type-default-view-format "rails 3 custom mime type - default view format"
  [2]: http://api.rubyonrails.org/