Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6183245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:19:55+00:00 2026-05-24T01:19:55+00:00

I am using the 0.5.5 version of the gcal4ruby gem on my rails 3.0

  • 0

I am using the 0.5.5 version of the gcal4ruby gem on my rails 3.0 app and I am
seemingly having trouble creating an event. I can start service, and
create a calendar just fine, but I get the following error when I try
to create an event:

NoMethodError: undefined method `debug' for #<GCal4Ruby::Calendar: 
0x1036d8a68> 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:242:in `to_xml' 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:236:in `map' 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:236:in `to_xml' 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:230:in `create' 
        from /opt/local/lib/ruby/gems/1.8/gems/gdata4ruby-0.1.5/lib/ 
gdata4ruby/gdata_object.rb:155:in `save' 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:225:in `save' 
        from (irb):92 

I looked at the code in this line, and it seems like it is checking
whether or not the service.debug = true, not the calendar, so i’m not
sure why it is throwing this error. Here’s how I got here in IRB,
line by line:

service = GCal4Ruby::Service.new 
service.authenticate(MY_GOOGLE_LOGIN, MY_GOOGLE_PASS) 
calendar = GCal4Ruby::Calendar.find(service, 'Test 2', :first) 
event = GCal4Ruby::Event.new(calendar) 
event.title = "test title" 
event.content = "test content" 
event.where = "my house" 
event.start = Time.now 
event.end = 2.hours.from_now 
event.all_day = false 
event.calendar = calendar[0] 
event.save 
NoMethodError: undefined method `debug' for #<GCal4Ruby::Calendar: 
0x1036d9990> 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:242:in `to_xml' 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:236:in `map' 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:236:in `to_xml' 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:230:in `create' 
        from /opt/local/lib/ruby/gems/1.8/gems/gdata4ruby-0.1.5/lib/ 
gdata4ruby/gdata_object.rb:155:in `save' 
        from /opt/local/lib/ruby/gems/1.8/gems/gcal4ruby-0.5.5/lib/gcal4ruby/ 
event.rb:225:in `save' 

I must be missing something here, but I’m not sure what. Obviously I
am getting a valid calendar object…is there some attribute that I am
missing?

Alternatively, if anyone has any other suggestions as to what to use for a calendar solution I would love to hear it. Basically I need to allow users to add predefined events to a calendar, which can be recurring, and ideally I’d like for them to be able to export these calendars for use in outlook, ical, etc… Is there a way to do this via web?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:19:56+00:00Added an answer on May 24, 2026 at 1:19 am

    well this is annoying, i seem to have it working. it was a matter of changing:

    event = GCal4Ruby::Event.new(calendar)
    

    to

    event = GCal4Ruby::Event.new(service)
    

    even though that’s directly contrary to what i had read in the documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using version 1.5.0 of the Slim PHP framework, and I'm having problems with
I have an Codeigniter app (using version 2.1.0) that is writing a transaction to
I want to start using version control properly for my own personal projects written
This is for a jQuery Mobile app using version 1.0.1. I'm trying to get
I'm having trouble using a template bound multiple times. For instance this is fine:
I'm having trouble finding my way around Zend Framework documentation. I'm currently using the
I am using version 2.3.11 of will_paginate, been using this gem for years. Suddenly,
I am new to rails and using version 3.1.0 and trying to deploy to
Using version v3.8 I got this behaviour with dragged markers. a) marker.setMap(map) --> Marker
I have set up a NInject (using version 1.5) binding like this: Bind<ISessionFactory>().ToMethod<ISessionFactory>(ctx =>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.