comment out resources :profiles. It was an old and deleted scaffold. it disturbed heroku