Constant RiCal from ri_cal.rb not found

38 views
Skip to first unread message

steveb

unread,
Jun 2, 2010, 8:50:46 PM6/2/10
to CommunityEngine
Hi fellow CE enthusiasts,

I've installed CE twice now on Windows and get the following error
both times when I run the tests:

Loaded suite c:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
rake_test_loader
Started
..............................................................................................................................E..
.................................................................................................................................
.................................................................................................................................
..............................
Finished in 115.056 seconds.

1) Error:
test_should_get_ical(EventsControllerTest):
NameError: Constant RiCal from ri_cal.rb not found
desert (0.5.3) lib/desert/rails/dependencies.rb:15:in
`load_missing_constant'
c:/Ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/
extensions.rb:206:in `const_missing'
vendor/plugins/community_engine/app/controllers/
events_controller.rb:31:in `ical'
haml (2.2.20) lib/sass/plugin/rails.rb:20:in `process'
/vendor/plugins/community_engine/test/functional/
events_controller_test.rb:78:in `test_should_get_ical'

570 tests, 997 assertions, 0 failures, 1 errors
rake aborted!
Command failed with status (1): [c:/Ruby/bin/ruby.exe -I"lib;lib" "c:/
Ruby/...]

I searched in the CE plugin tree and found references to RiCal. ...,
but no definition for it.

I also Googled around for help, but I guess I'm the only lucky one
having this problem ;) Anyone have any ideas for me?

Thanks!
Steve

Bruno Bornsztein

unread,
Jun 3, 2010, 8:34:54 AM6/3/10
to communi...@googlegroups.com
Do you have the ri_cal gem installed?


--
You received this message because you are subscribed to the Google Groups "CommunityEngine" group.
To post to this group, send email to communi...@googlegroups.com.
To unsubscribe from this group, send email to communityengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.


steveb

unread,
Jun 5, 2010, 1:57:16 PM6/5/10
to CommunityEngine
Yes, I do. Here's my entire list for reference.

C:\Ruby>gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
acts_as_ferret (0.4.4)
authlogic (2.1.3)
aws-s3 (0.6.2)
BlueCloth (1.0.1)
builder (2.1.2)
calendar_date_select (1.16.1)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
configuration (1.1.0)
cucumber (0.6.2)
cucumber-rails (0.2.4)
database_cleaner (0.4.3)
desert (0.5.3)
diff-lcs (1.1.2)
fastthread (1.0.1)
ferret (0.11.5)
fxri (0.3.6)
fxruby (1.6.16)
gem_plugin (0.2.3)
gemcutter (0.4.1)
haml (2.2.20)
heroku (1.8.0)
hobo (1.0.0)
hobofields (1.0.0)
hobosupport (1.0.0)
hoe (2.5.0)
hpricot (0.6.164)
htmlentities (4.2.1)
icalendar (1.1.3)
json (1.2.0)
json_pure (1.2.0)
launchy (0.3.5)
linecache (0.43)
log4r (1.0.5)
mime-types (1.16)
mongrel (1.1.5)
mysql (2.8.1)
nifty-generators (0.3.2)
nokogiri (1.4.1)
polyglot (0.3.0)
ptools (1.1.6)
rack (1.0.1)
rack-test (0.5.3)
rails (2.3.5)
rake (0.8.7)
rest-client (1.3.1)
ri_cal (0.8.5)
rmagick (2.12.0)
rspec (1.3.0)
rspec-rails (1.3.2)
ruby-debug-base (0.10.3)
ruby-debug-ide (0.4.5)
ruby-opengl (0.60.0)
ruby-openid (2.1.7)
rubyforge (2.0.4)
rubygems-update (1.3.5)
searchlogic (2.4.12)
sqlite3-ruby (1.2.1)
term-ansicolor (1.0.4)
test-unit (2.0.1)
treetop (1.4.3)
webrat (0.7.0)
will_paginate (2.3.12)
win32-api (1.2.1)
win32-clipboard (0.4.4)
win32-dir (0.3.2)
win32-eventlog (0.5.0)
win32-file (0.5.5)
win32-file-stat (1.3.1)
win32-process (0.5.9)
win32-sapi (0.1.4)
win32-sound (0.4.1)
win32console (1.2.0)
windows-api (0.2.4)
windows-pr (0.9.3)
xml-simple (1.0.12)

On Jun 3, 8:34 am, Bruno Bornsztein <bruno.bornszt...@gmail.com>
wrote:
> > communityengi...@googlegroups.com<communityengine%2Bunsubscribe@ googlegroups.com>
> > .

Justin G

unread,
Jun 6, 2010, 10:16:16 AM6/6/10
to CommunityEngine
Steve,

Try adding the following to app/controllers/events_controller.rb right
below the other require:
require 'ri_cal'

This resolved an identical problem I was seeing this weekend. Search
engines were trying to download /events/ical.ics and causing an
NameError (Constant RiCal from ri_cal.rb not found) in the controller.

Regards,
Justin

steveb

unread,
Jul 18, 2010, 3:34:37 PM7/18/10
to CommunityEngine
Justin,

You rock! That fixed it. Thanks.

FYI, I went to Ubuntu this weekend on my laptop and received the exact
same error. But Justin's fix worked here.

Thanks!
Reply all
Reply to author
Forward
0 new messages