begin app routing with :resource for posts controller