undefined method `title'

cannot display posts