I want to customize how the date is formatted for timestamps. How do I
do that? (I want the code above to automatically use my new format for
timestamp/datetime columns)
<%= column.human_name %>
<%=h @user.send(column.name) %>
<% end %>
I want to customize how the date is formatted for timestamps. How do I
do that? (I want the code above to automatically use my new format for
timestamp/datetime columns)
Try modifing the DATE_FORMATS[:db] constant with your own format…