search for: url_for_image_column

Displaying 7 results from an estimated 7 matches for "url_for_image_column".

2006 Jan 13
1
file_column - how to test for empty column?
...am wanting the user to be able to *not* upload an image if they so choose. Then I am trying to determine if that column is empty or not, and display a generic image if that column is empty. I have tried both of the following code blocks: <% if @newsentry.image -%> <%= link_to(image_tag((url_for_image_column "newsentry", "image", :small), :size => "50x50", :border => 0, :class =>"news_photo"), :controller => ''news'', :action => ''article'', :id => @newsentry) %> <% else -%> <%= link_to(image_tag(&quot...
2006 Apr 23
2
file_column and Thumbnails
I see that the SVN version of the excellent file_column plug-in can create thumbnails using the url_for_image_column helper. This uses Rmagick to create the thumbnail... Quick question... Let''s say the file is a TIFF image - can the helper create a JPG version of the thumbnail for display in the browser? Curious if the plug-in can handle that transform with some creative use of the options. Any ideas...
2006 Jun 07
0
Problem with file_column plugin path and application_helper.rb
Hello, I upgraded my Rails app from 1.0 to 1.1.2. Basically everything worked on my development box. When I uploaded the changes (including the frozen 1.1.2 gems) to my webhost most things worked. However I had a problem with my application_helper.rb file. It wasn''t able to find the url_for_image_column method from the file_column plugin. Here''s the relevant code in applicaiton_helper.rb: # this tag helper creates a image tag for file_column fields that contain images def image_tag_for_image_column(object, method, version, options = {}) options = Hash.new if options.nil? options[:siz...
2006 Mar 23
5
Filecolumn storage location
Hi, I am using file_column for some image uploading. I want to have all the images stored under one root which I have managed by setting the :store_dir option as below. file_column :filename, :store_dir => File.join(RAILS_ROOT, ''public'', ''images'', ''products'') So, my images get uploaded to: /public/images/products/<primary_key>
2006 Jan 04
4
file_column
I use file_column and it works fine. I tried to change the store_dir to a the path I want my files to be stored and not the default. I stored some images fine. But when I try to reach my images it seems like file_column uses the model_name/attribute_name on the image and not the store_dir I used. How can I change this ? Thanks in advance -- Alexander Antonakakis
2005 Dec 23
6
file_column and HABTM
I have several models that will be using file_column by way of the "Picture" class (HABTM). Right now, all pictures are stored in: public/picture/image/1/filename1.jpg public/picture/image/2/filename2.jpg Is there a way I can dynamically define the "store_dir" based on the model? For example, if I have "user", "product" and "place" models all
2006 May 09
3
File_Column Development Dead?
I''m curious if anyone knows if development on the file_column plug in is continuing? I''ve seen some SVN commits from awhile back but no binary releases. Did Sebastian speak at Canada on Rails? Anyone catch that? What is the future of file_column?