In another question here on stackoverflow (rails 3 custom mime type – default view format) 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 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:
controller.action_has_layout=controller.request.format=controller.collect_mimes_from_class_level
I’d be grateful for any help you can give me.
1 Answer