After installing the iCalendar gem and referencing as such (test model): require ''icalendar'' include Icalendar class ScheduleEntry < ActiveRecord::Base def write_to_ics cal = Calendar.new cal.event do dtstart Date.new(2005, 04, 29) dtend Date.new(2005, 04, 28) summary "Meeting with the man." description "Have a long lunch meeting and decide nothing..." klass "PRIVATE" end cal_string = cal.to_ical f = File.new("tmp/se_#{self.id}.ics", "w+") f.puts cal_string f.close end end I am getting the following exception in my mongrel server when starting: Thu Jul 19 18:18:41 -0700 2007: Error calling Dispatcher.dispatch #<NameError: cannot remove Object::Todo> /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:422:in `remove_const'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:422:in `send'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:422:in `remove_constant'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:273:in `remove_unloadable_constants!'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:273:in `each'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:273:in `remove_unloadable_constants!'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/ dependencies.rb:72:in `clear'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:60:in `reset_application!'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:116:in `reset_after_dispatch'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:51:in `dispatch'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `synchronize'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb: 271:in `run'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb: 270:in `each'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb: 270:in `run'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ bin/mongrel_rails:16:in `load'' /Applications/Locomotive2/Bundles/standardRailsMar2007.locobundle/i386/ bin/mongrel_rails:16 Any ideas? Thanks, Scott --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---