0
感谢您的帮助。错误发生在执行accepts_nested_attributes_for
。我得到rails 3-未定义的方法`events'for nil:NilClass when receiving_nested_attributes_for
ActionView::Template:Error (undefined method 'events' for nil:class) & NoMethodError in app/views/users/index.html.erb where line #12.
查看所有文件@https://gist.github.com/726828
总之,User
模型accepts_nested_attributes_for
的event
类。查看要点文件。再次感谢
谢谢@ecoologic,我会尝试并实施您的建议。 – brg 2010-12-03 11:39:26