I changed the file permissions to 777 all the way down to the storage
directory (/public/raw_data_files) for the sake of testing and it
still does not work.
It did work once when I first uploaded it but hasn’t worked since.
I’m also having problems getting attachment_fu to work on my shared
TextDrive host.
I’ve tried using all three of the image processing packages but get
the same error (below) with each.
chirag, have you had any success getting this working?
The error I get is the following:
NoMethodError: undefined method alias_method_chain' for Image:Class from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/ active_record/base.rb:1129:inmethod_missing’
from script/…/config/…/config/…/vendor/plugins/
attachment_fu/lib/technoweenie/attachment_fu/processors/
mini_magick_processor.rb:8:in included' from script/../config/../config/../vendor/plugins/ attachment_fu/lib/technoweenie/attachment_fu.rb:92:ininclude’
from script/…/config/…/config/…/vendor/plugins/
attachment_fu/lib/technoweenie/attachment_fu.rb:92:in has_attachment' from script/../config/../config/../app/models/image.rb:10 from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:140:inload’
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/
active_support/dependencies.rb:140:in load' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:56:inrequire_or_load’
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/
active_support/dependencies.rb:30:in depend_on' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:85:inrequire_dependency’
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/
active_support/dependencies.rb:98:in const_missing' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active_support/dependencies.rb:131:inconst_missing’
from (irb):1
Which, while I’m pretty much a Rails newbie, leads me to believe that
possible the version of rails running on the host (Rails 1.1.6) is not
up-to-date enough to support attachment_fu… Is that a fair
assessment?
def default_url_options(options)
{ :trailing_slash => true }
end
You do realize that’s due to funky rewrite rules in apache, right?
I’ve never run into that with nginx. I think you can just put this in
your htaccess too:
After some debugging and logging, I noticed that the ‘create’ action
was not being registered by Rails. The ‘new’ action would jump
straight to the ‘index’ action, which is a display list of the
uploaded files. Thanks to Steve E.’ June 20, 2007 blog entry, I
found a workaround. Add this to the body of the ApplicationController
class in application.rb :
def default_url_options(options)
{ :trailing_slash => true }
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.