Skip to content
Dimitrios Zorbas edited this page Oct 12, 2017 · 7 revisions

Migration guide for new 2.0 semantics (optionally available since 1.2)

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 via writeable: 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!