aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2013-02-20 15:06:01 +0400
committerNihad Abbasov <narkoz.2008@gmail.com>2013-02-22 11:20:10 +0400
commitdc142f9cd4d6341df28350ef4065c40f21e1f586 (patch)
tree2985e587df23e17cd3d4e8ac4fd7d93e208f82dc /actionpack
parente8e92c7264511f19e5cf48006a55a02358f838fd (diff)
downloadrails-dc142f9cd4d6341df28350ef4065c40f21e1f586.tar.gz
rails-dc142f9cd4d6341df28350ef4065c40f21e1f586.tar.bz2
rails-dc142f9cd4d6341df28350ef4065c40f21e1f586.zip
document setting custom datetime attribute for time_tag helper
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/date_helper.rb2
1 files changed, 2 insertions, 0 deletions
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 datetime="2010-11-03">Yesterday</time>
# time_tag Date.today, pubdate: true # =>
# <time datetime="2010-11-04" pubdate="pubdate">November 04, 2010</time>
+ # time_tag Date.today, datetime: Date.today.strftime('%G-W%V') # =>
+ # <time datetime="2010-W44">November 04, 2010</time>
#
# <%= time_tag Time.now do %>
# <span>Right now</span>