# Problem Loading Shards and Multisite

**URL:** <https://www.ruby-forum.com/t/problem-loading-shards-and-multisite/128138>\
**Category:** Radiant CMS\
**Created:** [February 5, 2008, 9:43am UTC](https://www.ruby-forum.com/t/problem-loading-shards-and-multisite/128138 "2008-02-05T09:43:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [February 5, 2008, 9:43am UTC](https://www.ruby-forum.com/t/problem-loading-shards-and-multisite/128138/1 "2008-02-05T09:43:23Z")

</div>

I just installed the new multisite extension, which is a nice  
improvement over the old virtual sites extension. Nice work!

But now I have problems… while I was at it, I updated to the edge of  
Radiant and everything broke. First of all I got an method not found  
error on the “acts\_as\_list” call in the multisite extension. Changing  
this to “acts\_as\_tree” makes it start, but then the shards extension  
doesn’t seem to work. The config statement has no effect, the only way  
to force shards to load is by renaming it… Still, it doesn’t seem to  
have an effect…

Any help appreciated.

Keith BIngman

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [February 5, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/problem-loading-shards-and-multisite/128138/2 "2008-02-05T15:43:53Z")

</div>

Keith,

The other day, I moved the rails2 branch into trunk (1.2 included  
acts\_as\_tree and acts\_as\_list). I have not yet updated multi\_site to  
include the acts\_as\_list plugin, but I will as soon as I can.

Sean

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [February 5, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/problem-loading-shards-and-multisite/128138/3 "2008-02-05T15:51:34Z")

</div>

Keith,

Give it a whirl now and let me know.

Sean

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [February 5, 2008, 4:03pm UTC](https://www.ruby-forum.com/t/problem-loading-shards-and-multisite/128138/4 "2008-02-05T16:03:29Z")

</div>

Sean,

Thanks. I figured it was something like that. But for some reason I am  
still having problems with Shards. It runs, but nothing is injected  
into the views. It also doesn’t honor the load order in the  
environment.rb files.

Keith

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [February 5, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/problem-loading-shards-and-multisite/128138/5 "2008-02-05T16:22:22Z")

</div>

Ah! It may be that I need to update Shards’ file types (.html.erb vs.  
.rhtml). I’m also going to add some tests later that verify it actually  
injects partials.

Sean

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [February 5, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/problem-loading-shards-and-multisite/128138/6 "2008-02-05T16:41:15Z")

</div>

Keith,

We put attachment\_fu in vendor/plugins of an extension in the Redken  
project. However, with the way that 0.6.4 (not edge) loads  
extension-stored plugins, we had some autoloading issues with it. I  
imagine it should work better since they are in the normal plugin search  
path now.

Sean

---

<div class="post-metadata">

**Author:** ![islepilot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/ac8455/32.png) [@islepilot](https://www.ruby-forum.com/u/islepilot)\
**Post date:** [February 5, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/problem-loading-shards-and-multisite/128138/7 "2008-02-05T16:38:16Z")

</div>

Of course, the new file endings may be messing it up. By the way, I am  
really happy to see the use of haml in there. We have been writing all  
of our extension views in haml lately.

As for the new vendor folder, I assume this deals with loading plugins  
in extesnions. Have you tried moving attachment\_fu there yet?

Keith
