I’m only getting the basic filename, product_id for the image, and size
(kb).
I am not getting the thumbnail generated (in db or filesystem), nor
is it resizing the image as depicted in the Picture model
| id | parent_id | content_type | filename |
thumbnail | size | width | height | product_id |
| 3 | NULL | image/png | ico_lh_creds_untrained.png | NULL
| 3064 | NULL | NULL | 21 |
| 4 | NULL | image/png | ico_msg_ok.png | NULL
| 6662 | NULL | NULL | 21 |
I am unclear what I’m doing wrong here.
Please see the source example at http://pastie.caboo.se/131759
–
Anthony E.
408-656-2473
http://anthony.ettinger.name
@pets = Pets.find_all_by_species(‘dog’)
@pets.each do |dog| {
if dog.name == ‘Farley’
dog.nick = ‘Sir Barks-A-lot’
elsif dog.name == ‘Bonita’
dog.nick = ‘Princess Boo’
else
dog.nick = ‘Doggie?’
end
}