I added a new column called level to my table called ClassRequest, ran rake db: migrate on localhost, and the view worked fine. Pushed changes to the hero, and the error "NoMethodError: undefined method` level" for # "occurred in the view
So, I ran heroku run rake db: migrate and it seems to be successful, showing the codes below.
Running rake db:migrate attached to terminal... up, run.1 == AddDetailsToClassRequests: migrating ====================================== -- add_column(:class_requests, :level, :string) -> 0.0684s == AddDetailsToClassRequests: migrated (0.0713s) =============================
But when I load the associated view, I still have this error "NoMethodError: undefined method` level" for # ".
I am new to rails, so I donβt know what is wrong, and how I know how to check what went wrong.
source share