Fixed edit action in PostsController