Created posts controller and index view in app/views/posts directoty.