I’m having an issue with calling a function that I’ve defined in
ApplicationHelper called format_time:
time.strftime("%a %b %d, %I:%M%p")
I use this function in my views to format the Time.now that I would have
stored in my tables as a DATETIME. I’m able to use this function,
any issues from my views, but if I try using it from a partial, I guess
undefined method `strftime’ for “2006-05-12 21:31:48”:String
I guess the problem is that the time is coming in as a String into
format_time, when it should be of type Time.
Thanks in advance.