binding pry to rails console

Add the following lines to make the rails console to use pry. make sure that

File: Gemfile

gem 'pry'

File: config/environments/development.rb

silence_warnings do
  require 'pry'
  IRB = Pry
end

Any questions on this, please feel free to ask. We’re here to help…