File tree 1 file changed +4
-4
lines changed
actionpack/lib/action_controller/metal
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,11 +91,11 @@ module MimeResponds
91
91
# and accept Rails' defaults, life will be much easier.
92
92
#
93
93
# If you need to use a MIME type which isn't supported by default, you can register your own handlers in
94
- # config/initializers/mime_types.rb as follows.
94
+ # + config/initializers/mime_types.rb+ as follows.
95
95
#
96
96
# Mime::Type.register "image/jpg", :jpg
97
97
#
98
- # Respond to also allows you to specify a common block for different formats by using any:
98
+ # Respond to also allows you to specify a common block for different formats by using + any+ :
99
99
#
100
100
# def index
101
101
# @people = Person.all
@@ -151,7 +151,7 @@ module MimeResponds
151
151
# format.html.none { render "trash" }
152
152
# end
153
153
#
154
- # Variants also support common ` any`/` all` block that formats have.
154
+ # Variants also support common + any+/+ all+ block that formats have.
155
155
#
156
156
# It works for both inline:
157
157
#
@@ -174,7 +174,7 @@ module MimeResponds
174
174
# request.variant = [:tablet, :phone]
175
175
#
176
176
# which will work similarly to formats and MIME types negotiation. If there will be no
177
- # :tablet variant declared, :phone variant will be picked:
177
+ # + :tablet+ variant declared, + :phone+ variant will be picked:
178
178
#
179
179
# respond_to do |format|
180
180
# format.html.none
You can’t perform that action at this time.
0 commit comments