`
wenke
  • 浏览: 77027 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

rails console显示SQL日志

    博客分类:
  • ror
阅读更多
1. sudo gem install inline RubyInline

2. create the config file '.irbrc' in user root directory

require 'rubygems'
require 'wirble'
#require 'bond'
#require 'bond/completion'
Wirble.init
Wirble.colorize

if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
  require 'logger'
  RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics