Uhm are attributes just something like additional members of a class,
other than those that come from the names of columns in the table?
I’ve got images table, which has ‘name’ column. I’ve added support for
creating thumbnails out of uploaded pictures and i’d like to have an
easy way of accessing them in my views.
How to do it? I.e. my image has name ‘1-13.jpg’ and thumbnail will have
‘1-13-thumb.jpg’. Do i have to create additional attribute thumbnailname
and somehow set it automatically based on ‘name’ value, so it will be
available for an instance variable of my image class, or create a helper
method for image class or…?