Ruby Forum Radiant CMS > Shards rake update error

Posted by Ben Morrow (benmorrow)
on 04.05.2008 23:22
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
Posted by Sean Cribbs (seancribbs)
on 04.05.2008 23:23
(Received via mailing list)
Ben,

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

Sean
Posted by Ben Morrow (benmorrow)
on 05.05.2008 00:41
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). It was also available on the 
"Using the Shards Extension" article in the Wiki 
(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
Posted by Arik Jones (imakethings)
on 05.05.2008 07:46
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.