Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Robert Wünsch's Profile

GitHub User: widescape


Comments by Robert Wünsch


If you don't want to dig through all the modules, use the default:

class Message
  include ActiveModel::Model

This is pretty handy, because it already extends Naming and Translation, and includes Validations and Conversion. And it comes with a nifty initializer that allows to pass attributes in "...") and offers a persisted? method.