justinfrench/formtastic — Issue #715: Generated initializer should use FormBuilder instead of SemanticFormBuilder?
Author: Odaeus
Created: 2011-10-11 22:45:04+00:00
State: open

I removed the comment from this line in the generated config/initializers/formtastic.rb file:

# Formtastic::SemanticFormBuilder.default_text_area_height = 5

Restarted the server and this had no effect. Wandering around the source code I found the deprecation warning in SemanticFormBuilder stating that FormBuilder should be used. I amended the above line as so:

Formtastic::FormBuilder.default_text_area_height = 5

Which now works. Is this correct? Does the generated initializer simply need updating?

Using Formtastic 2.0.2.

Thanks,
Andrew