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.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> > > 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/ -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ramon Miguel M. Tayag
2007-Dec-17 11:00 UTC
Re: not able to view the images after the upload
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 Koli <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > 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/ > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ramon Tayag --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ramon Tayag 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 Koli <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> > } >> > Thanks.. >> > -- > Ramon Tayagi 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---