2011-03-09 31 views

回答

5

您是否正在使用rails3分支?

我得到相同的异常如你,但固定它通过在我的Gemfile如下:

gem 'surveyor', :git => 'git://github.com/breakpointer/surveyor.git', :branch => 'rails3' 
gem 'formtastic' 
+0

谢谢!!!!!!!!!!!!!!! – 2011-03-22 11:28:03

+0

theres在github上写道:“主要分支在NUBIC/Surveyor,这不再是活跃的开发分支!” – bjelli 2011-08-11 13:08:21

1

那里有一张纸条在GitHub上说:“主要的分支是NUBIC /测量员这不再活跃的开发分支!“所以你可能想使用

gem 'surveyor', :git => 'git://github.com/NUBIC/surveyor.git', :branch => 'rails3' 
gem 'formtastic' 

改为。

而且,实际的命令生成的东西是

rails generate surveyor:install 
+0

感谢rails生成命令:D – Francois 2013-02-03 15:58:02

2

我遇到了麻烦,我安装上铁3.0.9

gem 'surveyor', :git => 'https://github.com/NUBIC/surveyor.git', :branch => 'rails3' 
gem 'formtastic' 

给我formtastic 2.0.0造成这种错误 - >未初始化的常量Formtastic :: SemanticFormHelper

找到一篇关于升级的博客文章...但这将是另一天:-) http://richardhulse.blogspot.com/2011/06/upgrading-to-formtastic-20.html

我再降级到1.2.4,并能产生验船师

gem 'surveyor', :git => 'https://github.com/NUBIC/surveyor.git', :branch => 'rails3' 
gem 'formtastic', '~> 1.2.4'