Created
March 19, 2019 03:09
-
-
Save younthu/1eeaabe5fe5a1cc3085f0ee16df8b5d4 to your computer and use it in GitHub Desktop.
rails console切换到pry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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