简体   繁体   English

如何加载Formtastic进行测试?

[英]How do I load Formtastic to test it?

我正在使用Rails 2.0.2并遵循Github安装说明:1.添加为gem来源,即“ gem来源-a http://gemcutter.org/ ” .....确定2.安装gem,即“ gem install formtastic” ....给出错误,无法在本地或存储库中找到表格,我正在学习Ruby on Rails,也不了解gems

I'm not sure Formtastic will work with Rails 2.0.2. 我不确定Formtastic是否可以在Rails 2.0.2中使用。 It certainly hasn't been tested for it (from the README): 当然,它还没有经过测试(来自自述文件):

I'm only testing Formtastic with the latest Rails 2.4.x stable release, and it should be fine under Rails 2.3.x as well (including nested forms). 我仅使用最新的Rails 2.4.x稳定版本测试Formtastic,在Rails 2.3.x(包括嵌套表单)下也应该可以。 Patches are welcome to allow backwards compatibility, but I don't have the energy! 欢迎使用修补程序以允许向后兼容,但我没有精力!

Try upgrading to at least Rails 2.3. 尝试至少升级到Rails 2.3。 And then open your config/environment.rb file and add config.gem formtastic . 然后打开您的config/environment.rb文件并添加config.gem formtastic

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM