# Shards rake update error

**URL:** <https://www.ruby-forum.com/t/shards-rake-update-error/136636>\
**Category:** Radiant CMS\
**Created:** [May 4, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/shards-rake-update-error/136636 "2008-05-04T23:22:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 4, 2008, 11:22pm UTC](https://www.ruby-forum.com/t/shards-rake-update-error/136636/1 "2008-05-04T23:22:18Z")

</div>

I’m trying to install the Shards extension, but when I run the update  
rake task, I get the error, “Don’t know how to build task  
‘radiant:extensions:shards:update’”.

Here’s the text from my console window:

C:\Users\Ben\BitNami RubyStack projects\concretedesigncenter\>rake  
radiant:extensions:shards:update --trace  
(in C:/Users/Ben/BitNami RubyStack projects/concretedesigncenter)  
rake aborted!  
Don’t know how to build task ‘radiant:extensions:shards:update’  
C:/Program Files/BitNami  
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1634:in  
`[]' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1930:in`invoke\_task’  
C:/Program Files/BitNami  
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in  
`top_level' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in`each’  
C:/Program Files/BitNami  
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in  
`top_level' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in`standard\_exception\_handling’  
C:/Program Files/BitNami  
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in  
`top_level' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in`run’  
C:/Program Files/BitNami  
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in  
`standard_exception_handling' C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in`run’  
C:/Program Files/BitNami  
RubyStack/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31  
C:/Program Files/BitNami RubyStack/ruby/bin/rake:16:in `load’  
C:/Program Files/BitNami RubyStack/ruby/bin/rake:16

Any ideas?

Ben

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 4, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/shards-rake-update-error/136636/2 "2008-05-04T23:23:36Z")

</div>

Ben,

Shards doesn’t use or provide that task. No need to run it!

Sean

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 5, 2008, 12:41am UTC](https://www.ruby-forum.com/t/shards-rake-update-error/136636/3 "2008-05-05T00:41:29Z")

</div>

Thanks, Sean.

I was having trouble installing the Reorder extension, and thought the  
cause might have been that I didn’t run the update task on the  
Shardsextension since it is required for Reorder.

I had the error: ## undefined method `page’ for  
#Radiant::AdminUI:0x40804734

The solution was to edit Radiant’s environment.rb file:

config.extensions = [:shards, :all]

I found that information on the Reorder extension announcement  
([http://www.ruby-forum.com/topic/132171](http://www.ruby-forum.com/topic/132171)). It was also available on the  
“Using the Shards Extension” article in the Wiki  
([http://wiki.radiantcms.org/Using\_the\_Shards\_Extension](http://wiki.radiantcms.org/Using_the_Shards_Extension)).

In my defense, I had not yet read the Wiki article because I was really  
only interested in installing Reorder and not in developing for Shards.

I did on the other hand read the README file in the Shards directory  
prior to posting, so maybe adding the bit about how you _must_ edit the  
envirironment.rb file would help people who struggle with this in the  
future.

Thanks once again for all your hard work!

Ben

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [May 5, 2008, 7:46am UTC](https://www.ruby-forum.com/t/shards-rake-update-error/136636/4 "2008-05-05T07:46:53Z")

</div>

The requirement for shards is hard to catch sometimes which is why I  
can’t wait for it to be integrated into core.

(hint at seancribbs) lol.
