# Library and PaperClipped

**URL:** <https://www.ruby-forum.com/t/library-and-paperclipped/198821>\
**Category:** Radiant CMS\
**Created:** [November 8, 2010, 3:46pm UTC](https://www.ruby-forum.com/t/library-and-paperclipped/198821 "2010-11-08T15:46:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 8, 2010, 3:46pm UTC](https://www.ruby-forum.com/t/library-and-paperclipped/198821/1 "2010-11-08T15:46:22Z")

</div>

Have been trying to get a gallery to work with Radiant.

I’ve tried the ‘Galleries’ extension - but could see no way to add  
images from the asset list to the gallery.

Am also now looking at the Library extension and their fork of  
Paperclipped - but after trying to run the rake development  
db:migrate:extensions task - I’m now getting an error which says…

undefined method `is\_taggable’ for #Class:0xb6d096f0

…nor can I start the webserver.

Any ideas? Help?

Tony

---

<div class="post-metadata">

**Author:** ![anthonybaker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@anthonybaker](https://www.ruby-forum.com/u/anthonybaker)\
**Post date:** [November 10, 2010, 2:32pm UTC](https://www.ruby-forum.com/t/library-and-paperclipped/198821/2 "2010-11-10T14:32:16Z")

</div>

On Mon, Nov 8, 2010 at 9:45 AM, Anthony B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> ..nor can I start the webserver.
> 
> Any ideas? Help?
> 
> Tony

I haven’t tried, but you could run the task with “–trace”  
rake db:migrate:extensions --trace

That will show you the stack trace and you can look for an error  
coming from one of your extensions. It will tell you the line number  
where the error occurs.

Also, you should be more specific here. You said that you are looking  
at the Library extension “and their fork” of Paperclipped.  
Pointing us to a specific repository would be helpful.

Are you sure you have the latest versions of these extensions? Or is  
it possible that you have a version of Radiant that doesn’t work with  
a particular version of an extension? Often developers will tag  
versions of their extensions on [github.com](http://github.com) for older versions of  
Radiant.

Does the rake task work when your extensions are not in  
vendor/extensions? (just move them out, try it, and move them back in)  
Or is there some combination of extensions which causes the error? For  
example, 1 extension might add features to another, but they are  
loaded in the wrong order.  
Extensions are loaded alphabetically (like plugins) but you can  
specify their load order in config/environment.rb  
If you have Library and Paperclipped, it’s likely that Library is  
loaded first and should not be.

Try setting “config.extensions = [:paperclipped, :library, :all]” and  
adjust that as you need.

---

<div class="post-metadata">

**Author:** ![anthonybaker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@anthonybaker](https://www.ruby-forum.com/u/anthonybaker)\
**Post date:** [November 10, 2010, 2:46pm UTC](https://www.ruby-forum.com/t/library-and-paperclipped/198821/3 "2010-11-10T14:46:07Z")

</div>

On 10 Nov 2010, at 13:31, Jim G. wrote:

> > undefined method `is\_taggable’ for #Class:0xb6d096f0  
> > That will show you the stack trace and you can look for an error  
> > coming from one of your extensions. It will tell you the line number  
> > where the error occurs.
> 
> Also, you should be more specific here. You said that you are looking  
> at the Library extension “and their fork” of Paperclipped.  
> Pointing us to a specific repository would be helpful.

Ah sorry. That’s my fault, I think. The library relies a variant of  
paperclip that I’ve been meaning for months to pull into the mainstream:

[GitHub - spanner/paperclipped: Radiant extension for managing assets and images with the Paperclip plugin · GitHub](https://github.com/spanner/paperclipped)

However, in this case I think the problem is a missing ‘taggable’  
extension:

[GitHub - spanner/radiant-taggable-extension: This is another tagging solution for radiant: more versatile but less to the point than the tags extension. · GitHub](https://github.com/spanner/radiant-taggable-extension)

I’ve updated all these extensions to take out the (deprecated)  
config.extension hooks but right now that means dependencies aren’t  
properly caught and it’s easy to miss something. Sorry about the hassle:  
everything will work when we standardise on gems but until then it’s a  
bit in-between.

(You could try installing all this from gems, but there are  
complications there too because at the moment most of my extensions are  
waiting in beta versions for the configuration interface to make it into  
radiant. The gems currently available are the beta versions and not  
compatible with radiant 0.9.1, or indeed with radiant edge. You would  
need the ‘preconfiguration’ branch.)

As it happens I’ve just been updating an image gallery that uses exactly  
this combination:

[http://lordmayorshow.org/library/history/](http://lordmayorshow.org/library/history/)

So if there’s anything I can do to help, do let me know.

best,

will

---

<div class="post-metadata">

**Author:** ![anthonybaker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@anthonybaker](https://www.ruby-forum.com/u/anthonybaker)\
**Post date:** [November 10, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/library-and-paperclipped/198821/4 "2010-11-10T14:47:23Z")

</div>

On 10 Nov 2010, at 13:45, William Ross wrote:

> > > db:migrate:extensions task - I’m now getting an error which says..  
> > > [GitHub - spanner/radiant-taggable-extension: This is another tagging solution for radiant: more versatile but less to the point than the tags extension. · GitHub](https://github.com/spanner/radiant-taggable-extension)  
> > > … or possibly just load order. Taggable and paperclipped have to load  
> > > before the library extension does.

will
