RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

CommandModel - when update_attributes isn't enough

A domain model which reifies concepts in methods like account.withdraw(...) is much richer than one that funnels everything through account.update_attributes(...). But how to integrate this better domain model with Rails validations and form helpers? CommandModel to the rescue!

Comments

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!