It should be easy. Well, I'm sure it should be simple, these are rails.
The problem is this: in the model, all data has a created_at field. To get this information in the view, I use the block where the string t.created_at is located.
He shows me a result like 2015-04-12 11:04:44 UTC
What method should be used to display this date as 2015-04-12 ? I suppose it should be something like this: <i> t.created_at.date_only
could you help me?
source share