Dav*_*d C 0 ruby ruby-on-rails irb ruby-on-rails-3
我的.irbrc位于我的〜/ .irbrc.
我注意到当我在Rails 3.x应用程序上运行'rails console'时,它说它正在寻找一个宝石.
Gems missing: no such file to load -- ap
Run Code Online (Sandbox Code Playgroud)
但如果我在rails 2.x应用程序上运行'irb'或'script/console',一切都会正常运行.
是否有另一个位置Rails 3寻找irbrc配置?
我不确定这些信息是否适用,但我在我的盒子上运行RVM(Ubuntu)
我刚想通了.我以为我把它粘贴在其他有同样问题的人身上.
根据http://matthewhutchinson.net/2010/9/19/rails-3-bash-aliases-and-irbrc-configs/page/2
您需要将系统gem添加到Gemfile for Rails 3应用程序中(Bundler问题).
我做了以上,它的工作原理.
更新
似乎https://gist.github.com/2643079是迄今为止我发现的最优雅的解决方案.它的效果也很好.
| 归档时间: |
|
| 查看次数: |
924 次 |
| 最近记录: |