this is what is generated by the form. I separated the lines at
'Image 1' which is the value I entered in for the Image description
but it shows NULL for the image attributes (image_file_name, etc)
Processing AnalysesController#create (for 127.0.0.1 at 2010-03-31
09:26:53) [POST]
Parameters: {"authenticity_token"=>"WuQMc
+ntdX84NSUnXwRbjCXqdSQ0AMAK6VrsxUvv5kQ=",
"analysis"=>{"author"=>"Author 1",
"photo_attributes"=>[{"description"=>"Image 1",
"image"=>"IMG_3132.JPG"}, {"description"=>"", "image"=>""},
{"description"=>"", "image"=>""}]}, "commit"=>"Create"}
Analysis Columns (2.3ms) SHOW FIELDS FROM `analyses`
Photo Columns (1.6ms) SHOW FIELDS FROM `photos`
SQL (0.2ms) BEGIN
Analysis Create (0.7ms) INSERT INTO `analyses` (`problematik`,
`comment`, `technique`, `samplenbr`, `ref`, `worknbr`, `date`,
`author`, `record`, `created_at`, `updated_at`, `images`) VALUES(NULL,
NULL, NULL, '', '', '', NULL, 'Author 1', 0, '2010-03-31 07:26:53',
'2010-03-31 07:26:53', NULL)
Photo Create (0.4ms) INSERT INTO `photos` (`description`,
`author`, `created_at`, `updated_at`, `image_file_name`,
`image_content_type`, `image_file_size`, `image_updated_at`,
`analysis_id`) VALUES
('Image 1',
NULL, '2010-03-31 07:26:53', '2010-03-31 07:26:53', NULL, NULL, NULL,
NULL, 14)