hi,
i have this problem where in i’m able to upload the images using
file_column
to the server but i’m not able to view the images.i’m not able to see
the images
but then i’m able to view the image name when i click on my show action.
can any one please help??
THIS IS MY LOG as to what happens when i do the image upload.
Processing UploadController#create (for 127.0.0.1 at 2007-12-17
11:39:44) [POST]
Session ID: f385bac4321f9e08c5b50f5ac2d345a6
Parameters: {“commit”=>“Create”, “iframe_remote”=>“true”,
“action”=>“create”, “controller”=>“upload”,
“entry”=>{“lon”=>“77.620006105957”, “name”=>“hebbal”,
“comments”=>“test”, “image_temp”=>"", “image”=>#StringIO:0xb74d72d8,
“lat”=>“13.0509805297852”}}
Rendering upload/list.rjs
Completed in 0.03459 (28 reqs/sec) | Rendering: 0.00003 (0%) | DB:
0.00000 (0%) | 200 OK
[http://mongrel_cluster_civic/civic/upload/create?iframe_remote=true]
The image is shown as as STRINGIO insted of showing the image name.
My Model is as below…
class Entry < ActiveRecord::Base
require ‘remote_uploads.rb’
file_column :image, :magick => {
:versions => { "thumb" => "50x50" }
}
def self.content_columns
filter = %w(created_on updated_on lat lon image lock_version)
super.reject {|c| filter.include? c.name}
end
end
Thanks…