Displaying 1 result from an estimated 1 matches for "testpic".
Did you mean:
testpc
2006 Jan 12
0
[file_column] Problem displaying images after upload
...mages. The upload
(and rmajick goodness) works just fine, but when I try to display the
resulting image I get this error:
undefined method `image_relative_path'' for #<Array:0x252b694>
In script/console I can do this however:
Entry.find(:first).image_relative_path
=> "1/testpic.jpg"
>>
I think this might have todo with the way I am building @entry via a
find_by_sql:
def self.mine
find_by_sql("select entries.id,entries.image,
species.name, length,species.multiplier*length as score,caught_on
from entries join species on species_id...