我已将此行添加到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.
我在这里弄乱了什么想法?