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.
**
undefined method `has_attached_file’ for #Class:0x236b404
**

Am I loading the plugin correctly?

Thanks for the help

The plugin

maybe ‘require ‘paperclip’’?

On 25 Mar 2008, at 04:03, iso … wrote:

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 C. wrote:

On 25 Mar 2008, at 04:03, iso … wrote:

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

If I would have just put the plugin into the normal plugin dir all would
have worked, which it is now. It was the fact that it never installed
like a plugin I figured I had to do things differently :slight_smile:

Thanks for the help.