John-Li/the_blog — comment on commit 7a5b63c08d29674a42e7a8770f452714adc62bb5
File: app/controllers/posts_controller.rb line 12
By gmile:

You don't have to include `format.json` line all the time. It is only need if you're requesting a json (non-html) resource. But you don't do that right now. Try to omit the whole `respond_to` block and see what happens.