search for: dimensions_for

Displaying 1 result from an estimated 1 matches for "dimensions_for".

2006 Jun 07
0
Problem with file_column plugin path and application_helper.rb
...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[:size] = object.dimensions_for(version) image_tag(url_for_image_column(object, method, version), options) end I added the following line to the top of application.rb: require "#{RAILS_ROOT}/vendor/plugins/file_column/lib/file_column_helper.rb" and now my application works. Anyone have any ideas why I had to do thi...