From cbd71795bc4ac5b81c95dfc68d4b76e612433279 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Tue, 9 Jun 2015 00:12:06 +0900 Subject: [PATCH] [ci skip] Fix minutes to seconds in `select_second` This is same type commit of https://github.com/rails/rails/pull/20463 --- actionview/lib/action_view/helpers/date_helper.rb | 2 +- guides/source/action_view_overview.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionview/lib/action_view/helpers/date_helper.rb b/actionview/lib/action_view/helpers/date_helper.rb index 46ce7cf0be..be61106649 100644 --- a/actionview/lib/action_view/helpers/date_helper.rb +++ b/actionview/lib/action_view/helpers/date_helper.rb @@ -464,7 +464,7 @@ def select_time(datetime = Time.current, options = {}, html_options = {}) # The datetime can be either a +Time+ or +DateTime+ object or an integer. # Override the field name using the :field_name option, 'second' by default. # - # my_time = Time.now + 16.minutes + # my_time = Time.now + 16.seconds # # # Generates a select field for seconds that defaults to the seconds for the time in my_time. # select_second(my_time) diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md index 6ebeb23409..e16ce57d01 100644 --- a/guides/source/action_view_overview.md +++ b/guides/source/action_view_overview.md @@ -724,7 +724,7 @@ Returns a select tag with options for each of the seconds 0 through 59 with the ```ruby # Generates a select field for seconds that defaults to the seconds for the time provided -select_second(Time.now + 16.minutes) +select_second(Time.now + 16.seconds) ``` #### select_time -- GitLab