Publish a post through rails