Module: Errgonomic::Rails::ActionViewTagValue

Defined in:
lib/errgonomic/rails/active_record_optional.rb

Overview

A form helper reads its value off the record through the public reader whenever the value did not come from user input, which is every record an edit form loads from the database. Each tag then weighs what it finds its own way: a check box asks it for to_i, a datetime field for strftime, and a text field renders it into the markup. Unwrapping at the one seam they all read through is what lets a converted model render the form an unconverted one renders.