Denise Yu
I'm a software engineer. You can usually find me at the local pub, bouldering, or hunting for the best Korean fried chicken in London.
introduction to
@deniseyu21
The process of identifying and removing errors from computer programs.
Ensure method names are correct, and consider nil object cases
app/controllers/listings_controller.rb
Rails server log:
Using the view to debug is a common strategy. (Just remember to remove it before pushing...)
(type "rails console" or "rails c" into your shell)
Insert 'binding.pry' anywhere in your models, views, or controllers. Your Rails server will suspend and you can look around your application at that stage.
This requires the gem 'pry-rails'.
By Denise Yu