Fixed the ReadPosts, rails4 required change