Displaying 1 result from an estimated 1 matches for "5bscreenshot_temp".
2006 May 02
2
Mechanize and file_column
...troller
is :snapshots)
But I get this result from Mechanize:
{"snapshot%5Bscreenshot%5D"=>#<File:/tmp/CGI8585.4>, "action"=>"create",
"controller"=>"snapshots", "snapshot%5Bprocesses%5D"=>"",
"snapshot%5Bscreenshot_temp%5D"=>""}
It looks to my untutored eye like the query keys are getting
double-quoted on upload. Anyone else seen this, or anything like it?
The code driving mechanize looks like this:
img = @form.file_uploads.find{|f| f.name == ''snapshot[screenshot]''}
i...