I’m trying to use attachment fu to add a large number of images at
once using a script but i can’t even get it to add an image from the
console… the other documentation i’ve found no longer seems to work.
All the previous documentatio circa 2007 says :temp_file but this is
no longer available to i tried switching it to :uploaded_data, but
that doesn’t seem to work either…
also it want’s the size and is a required field, but shouldn’t this be
automatically deduced… providing it doesn’t help either…
I tried using ActionController::UploadedStringIO.new( data )
and it does create the files… but the images don’t work.
Is data supposed to be the filepath? ie. photos/joe.jpg ?
I also found an example of exactly what I want to do in the Practical
Rails Plugins book, but which is outdated using “temp_data =” It
looks simple and perfect, what am I missing?