Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby ActiveRecord Basics Introduction to ActiveRecord A Quick and Dirty Example

"created_at and updated_at" showing up on blog

"created_at and updated_at" showing up on blog. On stage 1 on ActiveRecord. Just began building blog. Why is this happening? Thanks!

1 Answer

Hi David Ames,

created_at and updated_at get added by default in Rails to track times that objects were, you guessed it, created and updated. This allows you to do a lot of great stuff like order the information by creation date, tell if it's been changed since it was initially created, or otherwise display the date on your web application, like in the case of a blog.