Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError for YAML::Object when validating forms #8

Open
jcoyne opened this issue Jul 16, 2010 · 3 comments
Open

NoMethodError for YAML::Object when validating forms #8

jcoyne opened this issue Jul 16, 2010 · 3 comments

Comments

@jcoyne
Copy link

jcoyne commented Jul 16, 2010

I hit this when trying to save a form:

NoMethodError (undefined method child_items' for #<YAML::Object:0x105b2c680>): vendor/plugins/smerf/app/models/smerf_form.rb:180:incall_validations'
vendor/plugins/smerf/app/models/smerf_form.rb:174:in validate_responses' vendor/plugins/smerf/app/controllers/smerf_forms_controller.rb:138:invalidate_responses'
vendor/plugins/smerf/app/controllers/smerf_forms_controller.rb:61:in `create'

@springbok
Copy link
Owner

Can you tell me what version of Rails you are using?

@jcoyne
Copy link
Author

jcoyne commented Jul 19, 2010

I'm using 2.3.8

@subhash
Copy link

subhash commented Mar 9, 2011

It looks like rails is having trouble finding the class definition when it is deserializing the cached object. Loading the class before deserializing i.e. adding

require 'smerf_meta_form'

in smerf_form.rb seems to fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants