From 0e149abbd5affc43f80a5c9bf8b7a7c2a5905d53 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 24 Jul 2019 12:55:28 +0900 Subject: Fix broken rdoc for UrlHelper [ci skip] * Fix unintentionally linked String, Symbol, Hash, and ERB. * Fix unintentionally code block. --- actionview/lib/action_view/helpers/url_helper.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb index 3df2eaf079..85fd549177 100644 --- a/actionview/lib/action_view/helpers/url_helper.rb +++ b/actionview/lib/action_view/helpers/url_helper.rb @@ -60,8 +60,8 @@ module ActionView # Creates an anchor element of the given +name+ using a URL created by the set of +options+. # See the valid options in the documentation for +url_for+. It's also possible to - # pass a String instead of an options hash, which generates an anchor element that uses the - # value of the String as the href for the link. Using a :back Symbol instead + # pass a \String instead of an options hash, which generates an anchor element that uses the + # value of the \String as the href for the link. Using a :back \Symbol instead # of an options hash will generate a link to the referrer (a JavaScript back link # will be used in place of a referrer if none exists). If +nil+ is passed as the name # the value of the link itself will become the name. @@ -226,7 +226,7 @@ module ActionView # The +options+ hash accepts the same options as +url_for+. # # There are a few special +html_options+: - # * :method - Symbol of HTTP verb. Supported verbs are :post, :get, + # * :method - \Symbol of HTTP verb. Supported verbs are :post, :get, # :delete, :patch, and :put. By default it will be :post. # * :disabled - If set to true, it will generate a disabled button. # * :data - This option can be used to add custom data attributes. @@ -235,7 +235,7 @@ module ActionView # * :form - This hash will be form attributes # * :form_class - This controls the class of the form within which the submit button will # be placed - # * :params - Hash of parameters to be rendered as hidden fields within the form. + # * :params - \Hash of parameters to be rendered as hidden fields within the form. # # ==== Data attributes # @@ -576,7 +576,7 @@ module ActionView # HTML attributes for the link can be passed in +html_options+. # # When clicked, an SMS message is prepopulated with the passed phone number - # and optional +body+ value. + # and optional +body+ value. # # +sms_to+ has a +body+ option for customizing the SMS message itself by # passing special keys to +html_options+. @@ -595,7 +595,7 @@ module ActionView # body: "Hello Jim I have a question about your product." # # => Text me # - # You can use a block as well if your link target is hard to fit into the name parameter. ERB example: + # You can use a block as well if your link target is hard to fit into the name parameter. \ERB example: # # <%= sms_to "5155555785" do %> # Text me: -- cgit v1.2.3