# Can't load plugin

**URL:** <https://www.ruby-forum.com/t/cant-load-plugin/132833>\
**Category:** Rails\
**Created:** [March 25, 2008, 5:03am UTC](https://www.ruby-forum.com/t/cant-load-plugin/132833 "2008-03-25T05:03:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumwutdum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Post date:** [March 25, 2008, 5:03am UTC](https://www.ruby-forum.com/t/cant-load-plugin/132833/1 "2008-03-25T05:03:22Z")

</div>

I can tell already that this will be dumb question 🙂

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

> **[For Attaching Files, use Paperclip](https://thoughtbot.com/blog/for-attaching-files-use-paperclip)**
>
> Last Update: For archival reasons, I’m removing direct links to releases,...

---

<div class="post-metadata">

**Author:** ![sumwutdum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Post date:** [March 25, 2008, 7:37am UTC](https://www.ruby-forum.com/t/cant-load-plugin/132833/2 "2008-03-25T07:37:13Z")

</div>

maybe ‘require ‘paperclip’’?

---

<div class="post-metadata">

**Author:** ![sumwutdum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Post date:** [March 25, 2008, 10:02am UTC](https://www.ruby-forum.com/t/cant-load-plugin/132833/3 "2008-03-25T10:02:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sumwutdum](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Post date:** [March 25, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/cant-load-plugin/132833/4 "2008-03-25T14:47:04Z")

</div>

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 🙂

Thanks for the help.
