How to set custom type/format in controller's response_to?

Environment