-1

如何安装虾插件。现在我正在使用这个命令。“rails plugin install https://github.com/prior/prawnto.git ”。它在控制台中抛出以下错误。

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>'
4

1 回答 1

1

认为您的问题可能是“3 年前编写的”。我建议使用 gem http://rubygems.org/gems/prawn,它是最新的并且得到很好的支持。把它放在你的gemfile中

gem 'prawn'
于 2012-05-28T12:36:47.907 回答