search for: photo_filename

Displaying 2 results from an estimated 2 matches for "photo_filename".

Did you mean: photo_file_name
2007 May 07
1
attachment_fu seems to be searching the wrong location for my images
...#Maximum image size, 1Mb :thumbnails => {:thumb => ''120x90''} #Create one thumbnail 120x90 validates_as_attachment end In my Product model, I have a method to return the file path for simplification or a stock image if not found: def photo_filename retval = "/images/no_image.gif" unless not photo.nil? then retval = photo.public_filename end retval end For some reason, Product.photo_filename keeps returning my $HOME directory: No such file or directory - "/Users/stamosunas" The whole trace is be...
2011 May 19
0
Unable to find the image path via file system using the paperclip plugin through the get method
...and within that there is a directory which gets created every time a new post is added with an appropriate image upload. This directory name is coined with the an id, uniquely identifying each image within it. The actual directory structure is like this:- rail_app_directory/photo/id_number/orginal/photo_filename.appropriate_file_format A more direct e.g. to the general structure posted above:- post_with_image/photo/1/original/sunset.jpeg Please find code for controller below just in case:- class PostsController < ApplicationController # GET /posts # GET /posts.xml def index...