Setting a custom Content type
The given example seems to be broken. The +:mime_type+ option as well as the [] access on the Mime::Type class are both not working.
The following code allows the custom setting of content types as intended by the original example:
class PostsController < ActionController::Base
d...