opening an hash assignment: event = { :title=>row["title"],
within this hash do this: (? can't work that way ?) row["start_time"] = "09:00:00" if row["start_time"].nil? row["end_time"] = "17:00:00" if row["end_time"].nil?
and go on with hash keys: :startTime=>row["start_time"], :endTime=>row["end_time"]}
and close it. if those two lines with row[...] are not very tricky and i miss this, then it's wrong. they should be otside the hash or would have to look different if their result should somehow become part of this hash.