I'm not sure how to access the src of a Paperclip img. What am I doing wrong?
preloadImg = new Image;
preloadImg = <%= @other_images[4].im开发者_如何学编程age.url[:display] %>;
You need to set preloadImg.src
(and maybe wrap some quotes around the string, I don't know how Ruby handles this).
精彩评论