
Should be able to perform file upload with form containing multiparameter attributes
Reported by Steven Luscher | March 16th, 2009 @ 02:55 PM
Here's a really strange one.
I have a form with both a file upload field and a multiparameter datetime select.
If I submit the form without attaching a file, everything is fine.
fill_in("name", :with => "Jane Doe")
click_button("submit")
But as soon as I attach a file…
fill_in("name", :with => "Jane Doe")
attach_file("photo", "path/to/file.jpg", "image/jpeg")
click_button("submit")
I get this error:
undefined method `birthday%284i%29=' for #<Profile:0x3d470e4> (NoMethodError)
It seems as though something is taking birthday(4i)
and escaping the curved brackets, but only when the form being
submitted has a file attached.
Comments and changes to this ticket
-
Steven Luscher April 6th, 2009 @ 11:55 PM
Turns out this is a bug in Rails, which I've uploaded a patch for.
-
gaffo May 7th, 2009 @ 06:34 PM
- State changed from new to invalid
Marking as invalid becuase it was a rails bug. No slight to you :) Thanks!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.