Skip to content

Instantly share code, notes, and snippets.

@bretweinraub
Created November 17, 2010 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bretweinraub/704023 to your computer and use it in GitHub Desktop.
Save bretweinraub/704023 to your computer and use it in GitHub Desktop.
ree-1.8.7-2010.02 > ce = CalendarEvent.all[1]
=> #<CalendarEvent id: 12, created_at: "2010-11-17 06:26:29", updated_at: "2010-11-17 06:26:29", patient_id: 3, start_date: "2010-08-02", end_date: nil, event_type: "actual_infusion", associated_calendar_event_id: 11, months_approved: nil>
ree-1.8.7-2010.02 > ce.errors.full_messages
=> []
ree-1.8.7-2010.02 > ce.valid?
=> false
ree-1.8.7-2010.02 > ce.errors.full_messages
=> ["Associated calendar event the associated event is already associated"]
ree-1.8.7-2010.02 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment