created these files via
rails generate controller Posts index
changed the controller to render
all posts as JSON objects

to see this in action,
> make sure you're create Posts objects
  through the rails console

> go to, localhost:3000/posts/index
implemented RESTful HTTP, action = index
implemented RESTful HTTP, action = show