ruby on rails - Carrierwave thumb method doesn't work for remote image url -


i have model 2 fields img_file (to load computer) , img_url (to load remotely internet). have standart thumb method in ulpoader.

 version :thumb    process :resize_to_fit => [50, 50]  end 

the problem that, when call method img_file works, doesn't img_url.

here code:

f.inputs    f.input :project_id, as: :select, collection: project.all {|p| [p.title]}    f.input :img_file, as: :file, hint: image_tag(f.object.img_file.thumb)    f.input :img_url end 

this how call thumb method both:

column :img_file |photo|   image_tag photo.img_file.thumb end  column :img_url |photo|   image_tag photo.img_url.thumb end 

it seems silly question, i'm stuck with. hope, see problem. thanks!


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -