Permalink
Browse files

document setting custom datetime attribute for time_tag helper

  • Loading branch information...
1 parent e8e92c7 commit dc142f9cd4d6341df28350ef4065c40f21e1f586 @NARKOZ NARKOZ committed Feb 20, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_view/helpers/date_helper.rb
@@ -642,6 +642,8 @@ def select_year(date, options = {}, html_options = {})
# <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>

0 comments on commit dc142f9

Please sign in to comment.