Photo.create(:data =>
File.new("/home/kaspir/Pictures/backgrounds/bg.png")
didn't return anything.
this is my development log error, although I'm not exactly sure what it
means.
Processing AlbumsController#create (for 127.0.0.1 at 2010-08-23
12:31:08) [POST]
Parameters: {"commit"=>"Submit",
"authenticity_token"=>"wvWbubnwEq9X3JidZZscpDdjes9pAqBIPHyyI/Wj3ak=",
"album"=>{"name"=>"test",
"photos_attributes"=>{"index_to_replace_with_js"=>{"data"=>#<File:/tmp/RackMultipart20100823-6874-1nyzz0m-0>}}}}
WARNING: Can't mass-assign these protected attributes: photos_attributes
[4;35;1mAlbum Create (0.3ms) [0m [0mINSERT INTO "albums" ("name",
"created_at", "updated_at") VALUES('test', '2010-08-23 16:31:08',
'2010-08-23 16:31:08') [0m
Redirected to http://localhost:3000/albums/10
Completed in 18ms (DB: 0) | 302 Found [http://localhost/albums]
Any advice given is EXTREMELY appreciated. Been working on this for 2
days, and it's driving me nuts
--
Posted via http://www.ruby-forum.com/.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.