提交 8e7998cd 编写于 作者: Y yuuji.yaginuma

fix rdoc markup [ci skip]

上级 6843cf6a
...@@ -91,11 +91,11 @@ module MimeResponds ...@@ -91,11 +91,11 @@ module MimeResponds
# and accept Rails' defaults, life will be much easier. # and accept Rails' defaults, life will be much easier.
# #
# If you need to use a MIME type which isn't supported by default, you can register your own handlers in # If you need to use a MIME type which isn't supported by default, you can register your own handlers in
# config/initializers/mime_types.rb as follows. # +config/initializers/mime_types.rb+ as follows.
# #
# Mime::Type.register "image/jpg", :jpg # Mime::Type.register "image/jpg", :jpg
# #
# Respond to also allows you to specify a common block for different formats by using any: # Respond to also allows you to specify a common block for different formats by using +any+:
# #
# def index # def index
# @people = Person.all # @people = Person.all
...@@ -151,7 +151,7 @@ module MimeResponds ...@@ -151,7 +151,7 @@ module MimeResponds
# format.html.none { render "trash" } # format.html.none { render "trash" }
# end # end
# #
# Variants also support common `any`/`all` block that formats have. # Variants also support common +any+/+all+ block that formats have.
# #
# It works for both inline: # It works for both inline:
# #
...@@ -174,7 +174,7 @@ module MimeResponds ...@@ -174,7 +174,7 @@ module MimeResponds
# request.variant = [:tablet, :phone] # request.variant = [:tablet, :phone]
# #
# which will work similarly to formats and MIME types negotiation. If there will be no # which will work similarly to formats and MIME types negotiation. If there will be no
# :tablet variant declared, :phone variant will be picked: # +:tablet+ variant declared, +:phone+ variant will be picked:
# #
# respond_to do |format| # respond_to do |format|
# format.html.none # format.html.none
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册