aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-05-08 21:37:17 +0900
committeryui-knk <spiketeika@gmail.com>2015-05-08 21:37:17 +0900
commit92c0af217446ec8f557f9d47a04a0d19fc58b4a5 (patch)
treed92e03bc47883a4769bf49f69e80267e52891ba7 /actionview/lib
parent33f83401ade58c1481071891f661c239358011a2 (diff)
downloadrails-92c0af217446ec8f557f9d47a04a0d19fc58b4a5.tar.gz
rails-92c0af217446ec8f557f9d47a04a0d19fc58b4a5.tar.bz2
rails-92c0af217446ec8f557f9d47a04a0d19fc58b4a5.zip
[ci skip] Add an example to ActionView::Helpers::FormBuilder#label
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/helpers/form_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb
index ece117b547..fa4e836081 100644
--- a/actionview/lib/action_view/helpers/form_helper.rb
+++ b/actionview/lib/action_view/helpers/form_helper.rb
@@ -1668,6 +1668,7 @@ module ActionView
# label(:post, :terms) do
# 'Accept <a href="/terms">Terms</a>.'.html_safe
# end
+ # # => <label for="post_terms">Accept <a href="/terms">Terms</a>.</label>
def label(method, text = nil, options = {}, &block)
@template.label(@object_name, method, text, objectify_options(options), &block)
end