adding pry-rails to error handling