Displaying 1 result from an estimated 1 matches for "lesson_register".
2009 Aug 28
0
Nil object nightmare
I''m having a real problem with nil objects in a view I''m playing with.
if I type ...
<%= debug lesson.lesson_register.attendees %>
I get the following displayed in the browser ....
- !ruby/object:Attendee
attributes:
enrollee_id: "25"
created_at: 2009-08-27 15:10:41
updated_at: 2009-08-27 15:10:41
id: "1"
attended: f
lesson_register_id: "1"
attributes_...