On 5 March 2010 16:52, xxdesmus <xxdes...@gmail.com> wrote: > When I add this to my model: > > def after_initialize > :date = Date.today > end
As an aside, using "date" as a name for a db field might cause you confusion down the line - it can be a reserved word (depending on the db). I'd try to give the some more name context: "registration_date" or whatever. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.