Generate the Comment model

rails generate Comment commenter:string body:text post:references
Migrate the database

rake db:migrate
Create an ActiveRecord association for Posts and Comments

In post.rb, add has_many :comments
Add a route for comments

This is nested
Fix comment route
Create Comments controller

$ rails generate controller Comments