Hacker News new | past | comments | ask | show | jobs | submit login

If you're rendering an object, you've likely already fetched it from the DB. Rails models (by default) will have a created_at and updated_at datetime columns that are automatically set and updated for you, and you can use them for exactly what is shown in the article.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: