Is there a model generated through scaffolding
, where to write creation_date = Time.now
so that creation_date
is equal to the date the object was created?
|
2 answers
The model already has the created_at
property. Use it.
- I can add, you do not think "rails-way", please do not write on the rails - pavelbel
- @pavelbel, am I stol? - AlexDenisov
- I remembered about him just now, just last time I dealt with the rails about a goal back, reading railstutotial: D. But for the quick response - thanks. - Niki-Timofe
- 3@pavelbel, well maybe, then give me the "Way to Rails-Way"? : D - Niki-Timofe
- oneThen never start learning new YPs ... You don’t immediately learn everything about them and think in the beginning not like their developers. - Niki-Timofe
|
See schema.rb In it, the entire project database structure (:
|