From d089fe2810216fb85cd52a2b89a861c07dc5bbb9 Mon Sep 17 00:00:00 2001 From: shingo-nakanishi Date: Thu, 1 Sep 2016 17:31:07 +0900 Subject: fix document for radio_button add `# Let's say that @user.receive_newsletter returns "no":` for `def radio_button(object_name, method, tag_value, options = {})`. fix `# Let's say that @user.category returns "no":` to `# Let's say that @user.receive_newsletter returns "no":` --- actionview/lib/action_view/helpers/form_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb index 7d574f0a14..b82dff1c17 100644 --- a/actionview/lib/action_view/helpers/form_helper.rb +++ b/actionview/lib/action_view/helpers/form_helper.rb @@ -965,6 +965,7 @@ module ActionView # # => # # # + # # Let's say that @user.receive_newsletter returns "no": # radio_button("user", "receive_newsletter", "yes") # radio_button("user", "receive_newsletter", "no") # # => @@ -1711,7 +1712,7 @@ module ActionView # # => # # # - # # Let's say that @user.category returns "no": + # # Let's say that @user.receive_newsletter returns "no": # radio_button("receive_newsletter", "yes") # radio_button("receive_newsletter", "no") # # => -- cgit v1.2.3