Added new rails resource for posts.