Binding Pry to Rails Console

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

File: Gemfile

1
gem 'pry'

File: config/environments/development.rb

1
2
3
4
silence_warnings do
  require 'pry'
  IRB = Pry
end

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

Comments

Comments