Skip to content

Commit

Permalink
added notes about "undefined method model" when reform/rails is not i…
Browse files Browse the repository at this point in the history
…ncluded properly.
  • Loading branch information
apotonick committed Nov 6, 2013
1 parent f78f563 commit 173a6a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,12 @@ Nesting forms only requires readers for the nested properties as `Album#songs`.

Check out [@gogogarret](https://twitter.com/GoGoGarrett/)'s [sample Rails app](https://github.com/gogogarrett/reform_example) using Reform.

Rails and Reform work out-of-the-box. If you're using Rails but for some reason wanna use the pure reform, `require reform/form`, only.
Rails and Reform work together out-of-the-box.

However, you should know about two things.

1. In case you explicitely _don't_ want to have automatic support for `ActiveRecord` and form builder: `require reform/form`, only.
2. In some setups around Rails 4 the `Form::ActiveRecord` module is not loaded properly, usually triggering a `NoMethodError` saying "undefined method `model'". If that happened to you, `require 'reform/rails'` manually at the bottom of your `config/application.rb`.

## ActiveRecord Compatibility

Expand Down

0 comments on commit 173a6a3

Please sign in to comment.