module CurrentDate::ViewHelpers
Public Instance Methods
current_date(format='%m/%d/%Y')
click to toggle source
<%= current_date
('Now: %m/%d/%Y') %>
# File lib/current_date/view_helpers.rb, line 4 def current_date(format='%m/%d/%Y') Time.current.strftime(format) end