Rails date manipulation / styling
To style dates in rails use strftime function.
For example: <%= comment.created_at.strftime(?%Y?) %>
Though, this might technically be ruby code not rails.
codes a lot
If the code is inexplicably missing from some of my posts it is because gist.github.com is down at the moment. Check back a little later.
To style dates in rails use strftime function.
For example: <%= comment.created_at.strftime(?%Y?) %>
Though, this might technically be ruby code not rails.