Displaying 1 result from an estimated 1 matches for "target_file_path".
2006 Mar 01
2
error: uninitialized constant
total rails nuby here. I have a table "thumbnails", hence the model
Thumbnail. I''m extending the Thumbnail class with a few constants
needed for thumbnail cropping:
class Thumbnail < ActiveRecord::Base
SOURCE_FILE_PATH = "path/to/source"
TARGET_FILE_PATH = "path/to/target"
TARGET_WIDTH = 100
TARGET_HEIGHT = 100
end
Now, in my controller i''m trying to access these:
source_path = Thumbnail::SOURCE_FILE_PATH
however, i get an error:
uninitialized constant SOURCE_FILE_PATH
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/li...