Google calendar is not working properly with gcal4ruby (0.2.6)

I’m using

Rails - 2.2.2

gcal4ruby (0.2.6)

I’m using google calendar to display events for users in my website.

Till 18-march-2012 everything was working fine. But now whenever user
add events to the calendar it show only busy in the calendar.

My code is

def add_event
user_id = current_user.id

      service = GCal4Ruby::Service.new
      service.authenticate("[email protected]", "password")

      calendar = GCal4Ruby::Calendar.find(service, 'Events' ,

{:scope => :first})

      title = params[:events][:location].upcase+' -

‘+params[:events][:traveller].upcase+’ - '+params[:events][:title]

      event = GCal4Ruby::Event.new(calendar)
      event.title = title
      event.content = params[:events][:content]
      event.where = params[:events][:location]
      event.start = Time.parse("#{sdate} at #{kstime} ")
      event.end = Time.parse("#{edate} at #{ketime}")
      if !event.save
        return false
      else
        event_id =  event.id
        Event.add_event(event_id,params[:events][:traveller],params[:events][:title],

params[:events][:content], params[:events][:location], sdate, stime,
edate, etime, user_id)
end
redirect_to :action=>“index”
end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs