Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:22Length:2.7 hours
  • Overview
  • Transcript

4.3 ActiveModel::Model

Using Rails to generate forms that perfectly map your ActiveRecord models on a page is one of the most awesome features the frameworks has. However it’s been historically difficult to use those forms in models that don’t necessarily need to inherit from ActiveRecord.

This lesson will explain you how to use the new ActiveModel::Model mixin into your classes so that they can now use what made ActiveRecord so shiny, like validations, form building and much more.