Skip to content

Instantly share code, notes, and snippets.

@younthu
Created March 19, 2019 03:09
Show Gist options
  • Save younthu/1eeaabe5fe5a1cc3085f0ee16df8b5d4 to your computer and use it in GitHub Desktop.
Save younthu/1eeaabe5fe5a1cc3085f0ee16df8b5d4 to your computer and use it in GitHub Desktop.
rails console切换到pry
1. 添加gem gem 'pry'
2. 添加gem 'pry-doc', 这是查看源代码用的, $ 命令和?命令要用到
3. gem 'pry-rails'这gem把默认的irb替换为pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment