RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in