Displaying 1 result from an estimated 1 matches for "asset_dir".
Did you mean:
assets_dir
2006 May 30
0
Modules in the ''lib'' directory
...module in the /myApp/lib directory to help manage image
files. It is coincidentally called ''image_manager''.
There is a function in there called asset_path, which is used to
determine the path of the images that is defined as follows:
def asset_path
"#{RAILS_ROOT}/#{ASSET_DIR}/#{foo.id}"
end
I am including the image manager module in the model for the image, but
when I call this function I get the following error:
undefined local variable or method `foo'' for #<Album:0x39b0d70>
"foo" is a function I have in my application controller and...