2015-02-06 63 views
1

我下面这些指南: -尝试安装调查宝石

http://www.runtime-revolution.com/runtime/blog/introducing-survey

当我尝试: -

gem "survey", "~> 0.1" 

因为它表明我得到: -

ERROR: While executing gem ... <RuntimeError> 
    Unknown command survey, 

当我尝试: -

gem install survey 

它说,一切都已经安装了罚款,但是当我尝试: -

Rails generate survey plain namespace:contests 

rails generate survey:install 

我得到: -

Could not find generator 

而且,在寻找我的Gemfile调查不在那里?

+0

https://github.com/runtimerevolution/survey/blob/master/README.md http://www.rubydoc.info/github/runtimerevolution/survey/frames – Sniper 2015-02-06 16:00:43

回答

0
gem "survey", "~> 0.1" 

不是命令。这是行,您需要手动将添加到您的Rails Gemfile中,以将您的Rails应用程序中的gem列为依赖项,这也在您链接的自述文件中进行了说明。

在你加上以后,运行

$ bundle 

和创业板将被安装在您的Rails应用程序。

作为一个方面说明,您也可以从阅读关于使用Ruby和Rails的介绍性书籍中受益。

+0

谢谢。你有什么建议? – Sniper 2015-02-06 17:04:34