similar to: file_column and adding/changing :versions

Displaying 20 results from an estimated 7000 matches similar to: "file_column and adding/changing :versions"

2006 Jan 17
3
file_column :root_path question.
I''m developing on Windows and deploying to FreeBSD+lighttpd using Switchtower and I''ve got things generally working. My problem now is that file_column data gets zapped every time I deploy, because Switchtower creates a whole new myapp/public directory with each rev. I looked through the file_column docs and found the :root_path option, which I use in my models as follows:
2006 Feb 13
3
file_column: uninitialized constant Magick
I am getting this following error when using file_column with RMagick: uninitialized constant Magick /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/ active_support/dependencies.rb:200:in `const_missing'' ./script/../config/../vendor/plugins/rails_file_column/plugins/ file_column/branches/kyle/lib/file_column.rb:621:in `file_column''
2006 May 07
1
file_column problem - uninitialized constant Magick
Hi, I''m on Windows and getting the following error while trying to use file_column with RMagick, uninitialized constant Magick C:/INSTAN~1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'' #{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in `file_column'' I installed file_column by
2006 Jan 05
5
File_column crashing WEBrick when using :magick options
I''m trying to use file_column in an app I''m writing. Simple file uploads are working fine. However, when I try and use the :magick options to make resized versions, WEBrick dies. This is the Media model: class Media < ActiveRecord::Base file_column :media_item, :magick => { :versions => { :thumb => {:size =>
2006 Feb 03
3
File_column and rmagick options
Hi, Currently I''m using the file_column plugin to upload images and save multiple copies of each at 3 different resoltions: file_column :name, :magick => { :versions => { "thumb96" => "96x150>", "medium250" => "250x400>", "large480" => "480X640>" } } I am wondering if
2006 Mar 08
3
file_column Cropping -> image offset information
Hello, I had a problem cropping images with file_column. These are my settings: file_column :image, :magick => { :versions => { :thumb => "80x80>", :medium => "150x150>", :square => { :crop => "1:1", :size => "50x50!" } },
2007 Aug 18
1
problem with file_column url generator
Hi, I have the following in a viewer Here, @lst = Homework.find(:all) is an array of homeworks. I checked this this is correct. Based on the error below, somehow, the url_for_file_colum does not like to act on the model element. I checked the source code to url_for_file_column, and the problem is with instance_variable_get(). I have no idea wat is going on! Any help is appreciated. Gordon.
2006 Jan 14
2
file_column, ActionMailer, and tests
Hi, Say I have a model Event that has a file_column called ''pdf''. I want to send out emails that contain the URL for the pdf file that''s associated with the Event. I also want to test the emails, so I''d need to be able to get at the URL for the pdf inside my unit tests. I don''t see how I can use url_for_file_column in this situation. Doing <%=
2006 Aug 23
0
Rotating Images with file_column
Hi everyone, I have a photo site that I''m making and I''m using file_column to handle the auto-generation of several "version" of each photo: essentially thumbs and fuller-sized version. The full sized versions retain the original''s proportions, whereas the thumbs are all 4:3. This means most of the thumbs are cropping the original. This all works great, but I
2006 Jan 17
2
file_column plugin and instance variables
To make file_column work I have to copy my local variable back to an instance variables like this: <% for product in @products @product = product %> <div class="catalogentry"> <%= image_tag url_for_file_column(''product'', ''image_url'') %></p> This is needed because file_column specifically looks for the instance
2006 Jan 19
1
partials and instance variables for file_column
Hi, Sebastian Kanthak of the file_column-Plugin wrote once: "is the photo object inside a local variable or an instance variable (e.g. photo or @photo)? url_for_file_column only works with instance variables, like all other active record form helpers. Could this be the problem?" So I''m using file_column in a partial, e.g. <%= render (:partial => "product",
2006 Jan 05
3
file_column url_for_file returns nil
Hi Guys, I have been struggling with this one for a while... file_column 0.3.1 My file gets uploaded and thumbnailed correctly, however <%= url_for_file_column("item", "image") %> returns nil... I have tracked the problem to line 60 in file_column_helper.rb but I cant figure out why my model would return nil in this case... -- Posted via
2006 Jun 23
0
Overriding a file_column attribute in model
I have a user model subclassed into Employees and Managers using STI. I am using FileColumn to manage images, in this case logos. If an Employee doesn''t have a logo of its own, I want my app to use the Manager''s logo in views. I did the following in models/users.rb: ------- class User < ActiveRecord::Base file_column :logo end class Employee < User belongs_to
2006 Feb 14
0
RoR BSD setup, file_column / Rmagick "invalid image"
So ive recently finished up my first RoR application and made sure it all worked right on the windows machine i developed it on. then deployed it on GeekISP.com which runs Open/Free BSD. I had to jump through a few little hoops to get it working and set the permissions for file_column to create directories, but it still doesnt work right. When i go to add a new item to the database and try
2006 Jun 05
1
file_column & RMagick
Hi, I have a site where I wish to upload a resize a picture, and store it in the file system. The best solution that I have found for this so far is using file_column. This was working great, for about an hour, but all of the sudden I began to get the following error (only when i attempt to resize). NameError (undefined method `assoc'' for class `Magick::ImageList''):
2006 Mar 26
2
File_Column plugin causes strange errors on windows
I installed the File_Column plugin and setup my relationships. create_table "screenshots", :force => true do |t| t.column "image", :string, :limit => 255, :null => false t.column "description", :text t.column "created_on", :datetime, :null => false t.column "item_id", :integer, :null => false t.column
2006 Jun 20
0
file_column Trying to Create Thumbnails of Non-Image Files??
Howdy. We use the handy file_column plug-in in some of our apps. We have a model with a file field and we upload both images and non-images into this field. It is specified as follows: file_column :file_uri, :magick => {:versions => {:thumbnail => {:size => ''200x''}}} Well, it works great for images but for non-images, the save fails. The root cause is an
2006 Feb 21
4
File_Column w/ Dynamic Sizing
I''m running file_column 0.3.1, and having a few problems... which are: - Uploading a 378x567 jpg, and using :magick => {:geometry => "100x100" }, my image ends up being 67x100 ? Is there a way to "force" the image to be the size you specify ? - My view has a drop-down of sizes, and I''m trying to pass in this size into :magick =>
2006 May 08
1
file_column - url_for_file_column issue.
Hi, url_for_file_column @variable, ''name'', takes an instance variable. My question is, what if I don''t want to have to retrieve the instance variable every single time but I have the image id, along with its name with me. Could I contruct that object in a view and pass it to url_for_file_column: <% @picture = Picture.new %> @picture.id = ...
2006 Aug 05
4
file_column just will not work...
Hello, I have been trying for some time to get a file to upload using the file_column plugin. My code is here: http://pastie.caboo.se/7304 But my code is not the issue. I cannot even pass the unit test that come with the file_column plugin. If I run ruby file_column_test.rb i get: 1) Error: test_store_dir_callback(FileColumnTest): TypeError: can''t convert Fixnum into String