Suggestion: default values for models

Alexander Kurakin
Wed, 17 Oct 2012 19:28:05 -0000

ROR doesn''t realize functionality of setting default values for models.
We
can use db''s default values but they are evaluated during migrations.
We
can''t set default value i.e. Time.now. But there are completed gems
that
realize this. I.e. default_value_for
(https://github.com/FooBarWidget/default_value_for). Why not to merge it in
rails? Thanks.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To view this discussion on the web visit