What provides boolean query methods on Mime::Type instances for the native Rails mime-types.
You now have these methods
available from your controllers:
request.format.atom?
request.format.css?
request.format.csv?
request.format.html?
request.format.ics?
request.format.js?
request.format.json?
request.format.multipart_form?
request.format.rss?
request.format.text?
request.format.url_encoded_form?
request.format.xml?
request.format.yaml?
... and any custom mime types that you add in any environment specific config files.
Commercial Use
Modify
Distribute
Sub-License
Private Use
Hold Liable
Include Copyright
Include License
These details are provided for information only. No information here is legal advice and should not be used as such.
30 Day SummaryJan 17 2026 — Feb 16 2026
|
12 Month SummaryFeb 16 2025 — Feb 16 2026
|