create index.html.erb for posts