norbert.ryan3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2010-Nov-04 14:46 UTC
namespace problem with iCalendar
i''m developing a calendar webapp for my company using ruby 1.8.7 and rails 2.3.8. naturally there are RoR models named "Calendar" and "Event" in order to send calendar events to other apps (microsoft outlook & lotus notes) i''m integrating with the iCalendar standard & ruby library. but this library contains classes called "Calendar" and "Event" now my app is getting lotta errors like this when it tries to use activerecord find - @calendar = Calendar.find(id) : NoMethodError (undefined method `find'' for Icalendar::Calendar:Class): app/controllers/foos_controller.rb:184:in `sendEmailDialogForm'' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' is there some way to do @calendar ActiveRecord::Base.Calendar.find ?? or something like it... trying to avoid using a module to specify a namespace or to rename my models. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Apparently Analagous Threads
- integration of tzinfo with icalendar
- Icalendar.Parse(StringIO.new(aString)) complains about missing method, bytesize
- vpimd, a personal information server
- Re: vpim: bug in icalendar.rb, Icalendar#decode_status
- Icalendar::UnknownPropertyMethod: Unknown property type: on Parsing a ical file