We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a10a82 commit 125b77fCopy full SHA for 125b77f
actionpack/lib/action_dispatch/http/mime_negotiation.rb
@@ -56,9 +56,14 @@ def accepts
56
57
# Returns the MIME type for the format used in the request.
58
#
59
- # GET /posts/5.xml | request.format => Mime[:xml]
60
- # GET /posts/5.xhtml | request.format => Mime[:html]
61
- # GET /posts/5 | request.format => Mime[:html] or Mime[:js], or request.accepts.first
+ # # GET /posts/5.xml
+ # request.format # => Mime[:xml]
+ #
62
+ # # GET /posts/5.xhtml
63
+ # request.format # => Mime[:html]
64
65
+ # # GET /posts/5
66
+ # request.format # => Mime[:html] or Mime[:js], or request.accepts.first
67
68
def format(_view_path = nil)
69
formats.first || Mime::NullType.instance
0 commit comments