10

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

  • usually the -rails gems provide extra things for integration with rails, so if from rails, you typically use these. – bento Jul 29 '12 at 14:09

1 Answers1

14

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.

Andrew Marshall
  • 95,083
  • 20
  • 220
  • 214