From dc142f9cd4d6341df28350ef4065c40f21e1f586 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Wed, 20 Feb 2013 15:06:01 +0400 Subject: document setting custom datetime attribute for time_tag helper --- actionpack/lib/action_view/helpers/date_helper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_view/helpers') diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb index 8df27611e0..d3953c26b7 100644 --- a/actionpack/lib/action_view/helpers/date_helper.rb +++ b/actionpack/lib/action_view/helpers/date_helper.rb @@ -642,6 +642,8 @@ module ActionView # # time_tag Date.today, pubdate: true # => # + # time_tag Date.today, datetime: Date.today.strftime('%G-W%V') # => + # # # <%= time_tag Time.now do %> # Right now -- cgit v1.2.3