-
Notifications
You must be signed in to change notification settings - Fork 183
Migration Guide
Dimitrios Zorbas edited this page Oct 12, 2017
·
7 revisions
The official migration guide is here: http://trailblazer.to/gems/reform/upgrading-guide.html
-
Please rename all
:as
to:from
. -
:virtual
used to read from the model but did not write. This is now done viawriteable: false
. -
:empty
is now:virtual
. It doesn't read or write. -
Once you use
:virtual
or:empty
with the new 1.2/2.0 semantics and updated all of your application forms, tell Reform to use new semantics and stop warning you about deprecations.# config/initializers/reform.rb Reform::Form.reform_2_0!