declare posts resource, create basic view for posts#new