I would like to get an array/hash where I can write @image[88] and that would result in "thisimage.jpg". I've got:
@images = Image.find(:all, :select => "id, real_file_name") result = {} @images.map {|a| result[a.id] = a.real_file_name }
I think this is correct, but I don't know how to get the result from it. It doesn't work with @images[88]. What am I doing wrong?