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