frankblizzard
2011-Jul-14 22:35 UTC
Carrierwave + RMagick - how to upload generated Image? (no form)
I have a article_set, which has many set_items, each set item has an image. I want to create an collage of the images, so one image out of many, and save it with carrierwave. for this, I have a method called "create_collage" inside my article_sets.rb model, which fires on after_create. see this gist with the code https://gist.github.com/1083624 It works that he generates the image and puts it in the temp folder, but whatever I try to upload it from the model through carrierwave, nothing gets uploaded and the :blog_image attribute stays NULL. Any ideas how to tell the uploader to work off that file? thank you! -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.