Forum: Ruby on Rails Uploading files using FileColumn

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
jeevs (Guest)
on 2006-12-31 01:40
(Received via mailing list)
Hi Guys,
            My end result should be to upload doc's and pdf's. I've got
file_column (http://www.kanthak.net/opensource/file_column/) working
for uploading files. However when I want to view them I get the
following problems.

<%= image_tag url_for_file_column("career", "cv_path") %>
it redirects to the following URL
src="/career/cv_path/development/8/Ceylon_Synthetic_Textile_Mills.doc?1167117912"
where career = model, cv_path = field, 8 = career_id
when it should be without the "development"
Does anyone know how I can change this?

Also how do I get it to to display doc and text files as well.
Thanks.
This topic is locked and can not be replied to.