Displaying 2 results from an estimated 2 matches for "120x90".
Did you mean:
120290
2010 Feb 14
2
paperclip is making me crazy
seems pretty simple, my model...
has_attached_file :pic_1, :styles => { :thumb => "120x90" },
:url => "/:attachment/:id_:style.:extension",
:path => ":rails_root/public/system/:attachment/:id_:style.:extension"
my view...
<% form_tag(:action => ''create'', :html => { :multipart => true }) do -%>
<label for="ad...
2007 May 07
1
attachment_fu seems to be searching the wrong location for my images
...store the uploaded images (shouldn''t need this)
:storage => :file_system, #Store
files in the filesystem
:max_size => 1.megabyte, #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...