Add methods and comments at posts_controller