I have a model with two fields img_file (to load from computer) and img_url (to load remotely from internet). I have a standart thumb method in my ulpoader.
version :thumb do
process :resize_to_fit => [50, 50]
end
The problem is that, when I call this method for img_file it works, but doesn't for img_url.
Here is my code:
f.inputs do
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 is how I call thumb method for both:
column :img_file do |photo|
image_tag photo.img_file.thumb
end
column :img_url do |photo|
image_tag photo.img_url.thumb
end
It seems to be a silly question, but I'm stuck with. Hope, anyone see the problem. Thanks!