Forum: Ruby on Rails Problem with file_column plugin path and application_helper.

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.
Nithin R. (Guest)
on 2006-06-07 22:17
(Received via mailing list)
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[: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 this on my production
installation and not on the development installation?
This topic is locked and can not be replied to.