Forum: Ruby on Rails How to handle plugin dependency

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Serengeti (Guest)
on 2007-07-04 06:46
(Received via mailing list)
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.
This topic is locked and can not be replied to.