Hi there,
I just deployed my application for the first time and run into n problem
with file_column.
Everytime I deploy my app all images are getting deleted.
Well. OK, so I created a directory called uploads
APP/shared/system/uplods and linked it to APP/current/public/uploads
Then, I changed th root_path of file_column like this:
file_column :image , :magick => { :versions => { "thumb" =>
"150x150"}},
:root_path => File.join(RAILS_ROOT, "public", "uploads")
The images are getting uploaded in this directory correctly but are not
getting displayed !
url_for_file_column("adimage", "image","thumb")
gives me:
/advertisement_image/image/27/thumb/SSA51740.jpg
but it has to be !!!
/uploads/advertisement_image/image/27/thumb/SSA51740.jpg
the /uploads/ is missing
Does anyone know how I can tell file_column to append me this directory
in front of it''s image url ??
Thanx,
Alex
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---