Conversation
Adding require statement
|
Where do you see this problem? Are you using dynamic_form with Rails? I think Bundler would already require the gem for you since our gem's name and the library's name is the same. |
|
I thought it was weird as well but after we dropped the gem in our Gemfile and then ran our tests for the offending forms, the error_messages property still was not defined. It was until we put require 'dynamic_form' in our config/application.rb file at the top with some other requires we have in there that it worked. |
|
If you do this, does it work? gem 'dynamic_form', :require => 'dynamic_form'Also, just to make sure, this gem is listed in the group that will be included in the test right? |
|
We are upgrading some large Rails 2 apps to Rails 3 and I didn't realize one needed to have Bundle.require in the application.rb. We added that and it worked great, sans |
Adding require statement