I'm trying to translate a month with I18n and I'm getting this error:
undefined method `strftime' for "2015-05-18":String
Code:
# controller
@previous_month = I18n.l(Date.today - (1%12).months)
# view
@previous_month.strftime('%B')
How can I solve this error?
controller:
view: