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.

Comments