# "Shards" extension questions

**URL:** <https://www.ruby-forum.com/t/shards-extension-questions/118937>\
**Category:** Radiant CMS\
**Created:** [November 1, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/shards-extension-questions/118937 "2007-11-01T15:53:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardchaven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Post date:** [November 1, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/shards-extension-questions/118937/1 "2007-11-01T15:53:29Z")

</div>

I have seen quite a bit of traffic related to the “shards” extension  
lately  
and was wondering what it does? From what I can gather it allows easier  
extension of the administration pages. Is that correct?

I wanted to know more about it so I tried to install it, however I now  
get  
the following error when trying to hit the /admin pages:  
NoMethodError in Admin/page#index

Showing _vendor/extensions/shards/app/views/admin/page/index.rhtml_  
where  
line _#3_ raised:

undefined method `render\_region’ for #\<#Class:0xb660c7bc:0xb660c794\>

Extracted source (around line _#3_):

1: \<% include\_javascript ‘sitemap’ -%\>  
2:

# Pages
  
3: \<%= render\_region :top %\>  
4:   
5:   
6: 

Does anyone have any clues on this? There were no INSTALL directions  
that I  
could find so I ran the standard “rake db:extension” just for fun.  
Also,  
being a complete newbie, I wanted to run the tests and create the  
documentation but couldn’t figure out how to it properly. I ran "rake  
test  
and it executed the tests for all of my extensions (even my home grown  
development ones). Obviously there were lots of errors (and that’s OK)  
however I couldn’t pick out the shards tests very easily. Is there a  
way to  
run just one test suite? And how do you create the docs for extensions?

Thanx!  
Richard

|
| |

---

<div class="post-metadata">

**Author:** ![richardchaven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Post date:** [November 8, 2007, 6:27am UTC](https://www.ruby-forum.com/t/shards-extension-questions/118937/2 "2007-11-08T06:27:43Z")

</div>

Had the same problem, found a snippet of info in a different extensions  
that depended on shards -

In your environment.rb file, located in /config, update the  
config.extensions such that shards loads first, was around line 33 for  
me:  
config.extensions = [:shards, :all]

Richard H. wrote:

> I have seen quite a bit of traffic related to the “shards” extension  
> lately  
> and was wondering what it does? From what I can gather it allows easier  
> extension of the administration pages. Is that correct?
> 
> I wanted to know more about it so I tried to install it, however I now  
> get  
> the following error when trying to hit the /admin pages:  
> NoMethodError in Admin/page#index
> 
> Showing _vendor/extensions/shards/app/views/admin/page/index.rhtml_  
> where  
> line _#3_ raised:
> 
> undefined method `render\_region’ for #\<#Class:0xb660c7bc:0xb660c794\>
> 
> Extracted source (around line _#3_):
> 
> 1: \<% include\_javascript ‘sitemap’ -%\>  
> 2:
> 
> # Pages
>   
> 3: \<%= render\_region :top %\>  
> 4:   
> 5:   
> 6: 
> 
> Does anyone have any clues on this? There were no INSTALL directions  
> that I  
> could find so I ran the standard “rake db:extension” just for fun.  
> Also,  
> being a complete newbie, I wanted to run the tests and create the  
> documentation but couldn’t figure out how to it properly. I ran "rake  
> test  
> and it executed the tests for all of my extensions (even my home grown  
> development ones). Obviously there were lots of errors (and that’s OK)  
> however I couldn’t pick out the shards tests very easily. Is there a  
> way to  
> run just one test suite? And how do you create the docs for extensions?
> 
> Thanx!  
> Richard
> 
> |
> | |
