简体   繁体   中英

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. 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). Patches are welcome to allow backwards compatibility, but I don't have the energy!

Try upgrading to at least Rails 2.3. And then open your config/environment.rb file and add config.gem formtastic .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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