undefined method `events' for nil:NilClass when using accepts_nested_attributes_for

Thanks for helping. The errors occurs during implementation accepts_nested_attributes_for. I get ActionView::Template:Error (undefined method 'events' for nil:class) & NoMethodError in app/views/ users/index.html.erb where line #12. See all files @ https://gist.github.com/726828

Doesn't look like anything to do with accepts_nested_attributes_for - doesn't look like you've assigned anything to @user in the index action.