rails gem:安装不安装gem

时间:2011-05-10 02:39:10

标签: ruby-on-rails

嘿所有人!我正在使用Aptana studio v2.0.5.1278522500进行RoR开发,并且在安装gem时遇到了麻烦。我在这里是一个菜鸟,所以希望我只是做一些愚蠢的事。

我已将此行添加到environment.rb文件中:

config.gem 'mislav-will_paginate', :verion => '>=2.3.2',
                                   :lib => 'will_paginate',
                                   :source => 'http://gems.github.com'

然后我运行rake gems:像这样安装:

>rake gems:install
(in C:/.../My Documents/Aptana Studio Workspace/blog)
gem install mislav-will_paginate --source http://gems.github.com
Successfully installed mislav-will_paginate-2.3.11
1 gem installed
Installing ri documentation for mislav-will_paginate-2.3.11...
Installing RDoc documentation for mislav-will_paginate-2.3.11...
>

如果我运行rake gems以验证它已安装,我得到:

>rake gems

(in C:/Users/Stevo/My Documents/Aptana Studio Workspace/blog)
 - [I] RedCloth 
 - [ ] mislav-will_paginate 

I = Installed
F = Frozen
R = Framework (loaded before rails starts)
>>

我尝试运行我的应用程序:

=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
Missing these required gems:
  mislav-will_paginate  

You're running:
  ruby 1.9.1.378 at D:/Ruby191/bin/ruby.exe
  rubygems 1.3.7 at C:/Users/Stevo/.gem/ruby/1.9.1, D:/Ruby191/lib/ruby/gems/1.9.1

Run `rake gems:install` to install the missing gems.

我在这里弄乱了什么想法?

0 个答案:

没有答案