Rails rails-footnotes 安装问题

xiaobingzai · 2012年10月29日 · 最后由 xiaobingzai 回复于 2012年10月29日 · 2242 次阅读

按照 https://github.com/josevalim/rails-footnotes#rails-3x 上面的步骤安装

出现

失败了,然后换种方式在 gemfile 中加入了 group :development do
gem 'rails-footnotes', '>= 3.7.5.rc4'
end

再执行 bundle install 安装成功 但是第二步 rails generate rails_footnotes:install 这个命令一直无法识别

识别不了就没法安装了,有人知道为什么不? PS: rails 版本为 Rails 3.2.8 ruby 版本 ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-linux]

网上搜索的,看是否有用?说是 rails3 不太兼容。

To start, the line for installing the gem isn’t quite current—I added the following to my config/environments/development.rb file:

config.gem "rails-footnotes", :source => "http://rubygems.org" Then install the gem:

$ rake gems:install

http://everydayrails.com/2010/06/10/rails-footnotes.html

#1 楼 @chenge 安装我找到办法了,就是 rails generate rails_footnotes:install 这个没法识别,you need to run the generator。

求助,有人知道怎么安装吗?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号