# Google Calendar and putting events into calendars

**URL:** <https://www.ruby-forum.com/t/google-calendar-and-putting-events-into-calendars/135062>\
**Category:** Rails\
**Created:** [April 17, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/google-calendar-and-putting-events-into-calendars/135062 "2008-04-17T15:18:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanderkerkoff](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Post date:** [April 17, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/google-calendar-and-putting-events-into-calendars/135062/1 "2008-04-17T15:18:52Z")

</div>

Hello there

Can anyone tell me what exactly needs to go into this bit of code?

response = g.new\_event(event, ‘my\_NOT\_default\_calendar’) #post data to  
that calendar  
puts response.body

All the code is here, thanks to Ben by the way

[http://googlecalendar.rubyforge.org/svn/examples/ruby\_standalone/gdata\_new\_event.rb](http://googlecalendar.rubyforge.org/svn/examples/ruby_standalone/gdata_new_event.rb)

Does anyone know what pieve of information from your calendar would  
you put in that field, I’ve tried all the pieces of information I get  
back from get\_calendars() and I can’t make it work.

If anyone has any ideas I’d be more than grateful.
