Friday, June 18, 2010

[Rails] Cumber: Sending unwanted form parameters

Hey,

I have a 2 model form. Vehicle which accepts_nested_attributes_for
Images.

The form has a single File input field for an image. The form does not
require a file to process (Works in Dev fine).

In cucumber I fill out some fields then submit. I'm getting back
Validation errors from the Image model. "Data file name must be set."
But I'm not submitting an image so the Image model should never be
called. Why is cucumber sending data that's getting to the nested
attributes in vehicle?

Cheers,
brianp

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate