I know in PHP, it's uses <?php date(Y); ?> to display the current year. How would I do it in an ROR's .rthml file?
on 2007-06-14 09:41
on 2007-06-14 09:43
<%= Time.new().year %>
on 2007-06-14 10:05
You're the greatest. Thanks, Kates :)
on 2007-06-14 10:47
If you wanna use those strings you used in PHP to display the date in some particular way - http://ruby-doc.org/core/classes/Time.html#M000297. On Jun 14, 10:05 am, Bob Sanders <rails-mailing-l...@andreas-s.net>