deploy pry for ruby on rails_Ruby_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > Ruby > deploy pry for ruby on rails

deploy pry for ruby on rails

 2014/8/8 14:39:16  chengyuanheng  程序员俱乐部  我要评论(0)
  • 摘要:whatispry?youguess!(areyoukiddingme?)pleasegoogleyourself,thanksinstallpry:1.geminstallpryorinsert"gem'pry'"inyourGemfile2.inconfig/environments/development.rbinsert:silence_warningsdobeginrequire'pry'IRB=PryrescueLoadErrorendendok!
  • 标签:for rails Ruby

what is pry?

?

? ? you guess!(are you kidding me?)

? ??please google yourself, thanks

?

install pry:

?

? ?1. gem install pry or?insert "gem 'pry'" in your Gemfile

? ?

? ?2. in config/environments/development.rb ?insert:

? ? ? ? silence_warnings do

? ? ? ? ? begin

? ? ? ? ? ? ?require 'pry'

? ? ? ? ? ? ?IRB = Pry

? ? ? ? ? rescue LoadError

? ? ? ? ? end

? ? ? ? end

?

ok!

?

?

?

发表评论
用户名: 匿名