ITeye博客

在Rails中使用Pry

biyeah · 2012-02-07 06:43 · Ruby · Ruby on Rails · Web前端 · Markdown

Pry可看成是IRB的加强版。支持语法高亮等特点。 1、在Gemfile中添加:

group :development do gem 'pry' end

运行bundle install。 2、在config/environments/development.r文件最后面添加:

silence_warnings do require "pry" IRB = Pry end

保存即可。 运行rails console进入pry终端。 pry项目地址:https://github.com/pry/pry

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。