search for: uploaded_imag

Displaying 7 results from an estimated 7 matches for "uploaded_imag".

Did you mean: uploaded_image
2006 Apr 20
2
Image Display Question
Hello there, I have something odd happening to my image tags when displaying an image. Here''s what my ''<img src>'' tags are looking like: <img alt="2-thumb" src="/images/public/uploaded_images/2-thumb.jpg?" /> Notice the question mark at the end of the string. I have no idea where this coming from. Here are the important parts of my code: In the ''image'' model: DIRECTORY = ''public/uploaded_images'' def to_url return DIRECTORY + &quot...
2006 Feb 17
1
validate() with has_many association
...9;'edit'', :id => @next_painting_id end else #there was a problem updating the record @heading = "Painting Editor" render :action => ''edit'', :id => @params[:id] end end painting model has_many :images def thumbnail=(uploaded_image) # form has a file upload field named painting[:thumbnail] add_image_by_size(uploaded_image, THUMBNAIL) end private def add_image_by_size(file, image_size) if existing_image = get_image_by_size(image_size) then if existing_image.uploaded_file?(file, image_size) existing_im...
2006 Apr 24
0
ImageMagick and EXIF Data
...if_by_entry("Flash")[0][1] self.save end --------------------------------------------- Here''s my whole image model ( it''s a rough model, but it works for now): require ''RMagick'' class Image < ActiveRecord::Base DIRECTORY = ''public/uploaded_images'' THUMBDIRECTORY = ''public/thumbs'' DISPLAY_DIRECTORY = ''/public/uploaded_images/'' DISPLAYTHUMBS_DIRECTORY = ''/public/thumbs/'' after_save :process after_destroy :cleanup def file_data=(file_data) @file_data = file_data writ...
2006 Mar 08
19
Creating multiple rows with one form
Hello. I''ve been trying this out for the past two days and I can''t seem to get it. I''m going to have a page where you can upload x amount of images at once. Lets say 10 images need to be uploaded, all with a caption. I''d like to have a browse button to choose the file, then the caption. Now, if I put 10 of them in one form, fill them all out and submit, I get
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
Hi All, I''m trying to use a form to upload a photo that I will save using attachment_fu. I''m very new to Facebookr so I apologize if this is covered somewhere, but I''m kind of stumped. Here''s what I''m doing now: <% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id => params[:id] }, :html => {
2008 Sep 15
1
RMagick Image Rendering Problem
...to Ruby on Rails and I have been trying to upload images and create thumbnails using the "Processing Uploaded Images" recipe from the Rails Recipes book. The script uses RMagick to create thumbnails of the uploaded images and saves both the uploaded images and the thumbnails in the public/uploaded_images directory. However when I upload an image, both the image and the thumbnail created do not resemble the image submitted. They are just scrambled pixels. The image attached is a thumbnail created by the recipe. Does anybody know how I can fix this problem? Any help is greatly appreciated. Mike....
2006 Jun 30
50
Time To Pick the Mongrel BUGS Mascot!
Bradley Taylor shot me this *goldmine* of ugly ugly ugly dogs: http://www.sonoma-marinfair.org/uglydogvote.shtml I *have* to use one of these for the Mongrel BUGS Mascot. He''ll go on our bug list page and replace the little beetles on the left. Pick the dog you think best represents a lovable but defective pooch and reply to this with your +1. Let the voting begin! -- Zed A. Shaw