Yeah, params[:id] is the id passed in from the URL, i.e. /posts/5/comments. And Post.find() searches by ID, so this will work.