fixed nomethod error by adding line I missed - post: posts.sample