2012-05-28 41 views
-1

如何安裝大蝦plugin.now我使用這個命令「rails plugin install https://github.com/prior/prawnto.git」。在控制檯中拋出下面的錯誤。如何在rails 3.0.0中安裝大蝦插件

Aptana Studio Workspace1/rails3/config/application.rb:1:in `<top (required)>': uninitialized constant Object::S (NameError) 
    from /usr/share/ruby-rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands.rb:15:in `require' 
    from /usr/share/ruby-rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands.rb:15:in `<top (required)>' 
    from script/rails:10:in `require' 
    from script/rails:10:in `<main>' 

回答

1

認爲你的問題可能「3年前創作」。 我建議使用寶石http://rubygems.org/gems/prawn,這是更新和更好的支持。只要把它放在你的寶石文件中

gem 'prawn'