Can't load plugin

I can tell already that this will be dumb question :slight_smile:

I am trying to install the paperclip plugin. I don't know why, but it
doesn't seem to install like other rails plugins using the script/plugin
install. So instead I downloaded it into the vendor/gems folder (which
I created before) and tried to load the plugin with the following line
in the environment.rb file:

config.load_paths << "#{RAILS_ROOT}/vendor/gems/paperclip"

After restarting the server I get an error that seems to imply that the
plugin was not loaded, as it says that the one of the methods supplied
by the paperclip plugin does not exist.

I can tell already that this will be dumb question :slight_smile:

I am trying to install the paperclip plugin. I don't know why, but it
doesn't seem to install like other rails plugins using the script/
plugin
install. So instead I downloaded it into the vendor/gems folder
(which
I created before) and tried to load the plugin with the following line
in the environment.rb file:

config.load_paths << "#{RAILS_ROOT}/vendor/gems/paperclip"

After restarting the server I get an error that seems to imply that
the
plugin was not loaded, as it says that the one of the methods supplied
by the paperclip plugin does not exist.
**
undefined method `has_attached_file' for #<Class:0x236b404>
**

Am I loading the plugin correctly?

Probably not. It's going to want it's init.rb file loaded. It looks
like you just be able to svn export it into vendor/plugins though.

Fred

Frederick Cheung wrote: