At this point, you should be able to look around a small codebase like this and figure it out, but here are the “hints”:
If you don’t get how this is working, point to a specific thing and ask a more directed question.
P.S. The routes could easily be amended to be:
resources :comments, except: [:new]