Not able to view the images after the upload

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…

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…

can anybody also let me know how to upload images to a different
directory
rather than /public,
for ex:RAILS_ROOT/

I used to use file_column a lot before til I started having questions
like yours. Everyone recommended attachment_fu, and so do I (but it’s
a bit harder to learn). I suggest you finish your project with
attachment_fu.

On Dec 17, 2007 6:36 PM, Koli K. [email protected]
wrote:

}

Thanks…


Ramon T.

Ramon T. wrote:

I used to use file_column a lot before til I started having questions
like yours. Everyone recommended attachment_fu, and so do I (but it’s
a bit harder to learn). I suggest you finish your project with
attachment_fu.

On Dec 17, 2007 6:36 PM, Koli K. [email protected]
wrote:

}

Thanks…


Ramon T.

i would like to do it with file_column as i have completed everything
else.
The image is displayed when it is run in the production mode in my local
but the same piece of code is not working on the server.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs