# How to handle plugin dependency

**URL:** <https://www.ruby-forum.com/t/how-to-handle-plugin-dependency/108497>\
**Category:** Rails\
**Created:** [July 4, 2007, 4:46am UTC](https://www.ruby-forum.com/t/how-to-handle-plugin-dependency/108497 "2007-07-04T04:46:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serengeti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e495f1/32.png) [@Serengeti](https://www.ruby-forum.com/u/Serengeti)\
**Post date:** [July 4, 2007, 4:46am UTC](https://www.ruby-forum.com/t/how-to-handle-plugin-dependency/108497/1 "2007-07-04T04:46:04Z")

</div>

I am trying to use the permalink\_fu plugin together with the  
acts\_as\_taggable plugin so my tags will have both a full name (like  
COM/OLE) and a permalink suitable for use in a url (like com-ole) so I  
can have urls like /article/list/com-ole.

The only snag I have hit is that when I add:

has\_permalink :name

to the Tag class definition I get a “method missing” error.

I was able to get it to work by adding:

extend PermalinkFu

to the Tag class defnition and also putting a copy of permalink\_fu.rb  
in the acts\_as\_taggable/lib directory.

Is there a better way to do this?

I tried adding:

require ‘permalink\_fu’

to tag.rb but this didn’t seem to help.
