News for hackers. Stuff that matters.
Re:Java Kicks Ruby on Rails in the Butt by DjDarkman on Sunday January 30, 2011 @02:31PM (#2158893)
> You modify the new and update method adding the line: > @recipe.date = Time.now > The equivalent in OX is adding the @DefaultValueCalculator annotation in model: > @DefaultValueCalculator(CurrentDateCalculator.class) > private Date date; > You obtain the same effect in a more declarative way.

That is more like a more verbose way. I am not a Ruby guy, but I would prefer the first syntax.

There are no comments on this comment yet.