Prathamesh Sonpatki
Prathamesh Sonpatki

Reputation: 906

Difference between pry and pry-rails

What is the difference (implementation wise) in pry gem and pry-rails gem?

Upvotes: 10

Views: 2671

Answers (1)

Andrew Marshall
Andrew Marshall

Reputation: 96934

Comparing their implementation doesn't make sense, because they're two different things: an IRb alternative and a plugin to make the former the Rails console.

The pry-rails gem simply adds an initializer to change the Rails console to Pry and adds some Pry commands specific to Rails. Pry-rails depends on Pry, and there's no reason you couldn't use Pry with Rails without pry-rails, it just makes it easier.

Upvotes: 15

Related Questions