The Getting Started Rails Guide kind of glosses over this part since it doesn\'t implement the \"new\" action of the Comments controller. In my application, I have a book mo
Try @chapter = @book.build_chapter. When you call @book.chapter, it's nil. You can't do nil.new.
EDIT: I just realized that book most likely has_many chapters... the above is for has_one. You should use @chapter = @book.chapters.build. The chapters "empty array" is actually a special object that responds to build for adding new associations.