基础3.0.5 rails 3.2.6安装问题

时间:2023-01-15 23:05:53

I just started a new project and added zurb-foundation to the Gemfile.
Bundle install show a sass compatibility problem so i run bundle update and bundle install and everything seems ok.

我刚刚启动了一个新项目,并为Gemfile添加了zurb-foundation。Bundle install显示了一个sass兼容性问题,所以我运行了Bundle update和Bundle install,一切看起来都很好。

But when I do rails g foundation:install as said in the documentation (https://github.com/zurb/foundation-rails) it's telling me : Could not find generator foundation:install.
Yet I did bundle install so I don't understand.

但是,当我做rails g foundation时,它告诉我:在文档中安装(https://github.com/zurb/foundationrails):无法找到生成器基础:安装。但是我确实捆绑了安装,所以我不明白。

Thanks for any help !
Here is my Gemfile :

谢谢你的帮助!这是我的Gemfile:

gem 'rails', '3.2.6'
gem 'sqlite3'

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  gem 'uglifier', '>= 1.0.3'
  gem 'zurb-foundation', '~> 3.0.5'
end

gem 'jquery-rails'

And the result of bundle install :

以及捆绑安装的结果:

Using rake (0.9.2.2)   
Using i18n (0.6.0)   
Using multi_json (1.3.6)   
Using activesupport (3.2.6)   
Using builder (3.0.0)   
Using activemodel (3.2.6)   
Using erubis (2.7.0)   
Using journey (1.0.4)   
Using rack (1.4.1)   
Using rack-cache (1.2)   
Using rack-test (0.6.1)   
Using hike (1.2.1)   
Using tilt (1.3.3)   
Using sprockets (2.1.3)   
Using actionpack (3.2.6)   
Using mime-types (1.19)   
Using polyglot (0.3.3)   
Using treetop (1.4.10)   
Using mail (2.4.4)   
Using actionmailer (3.2.6)   
Using arel (3.0.2)   
Using tzinfo (0.3.33)   
Using activerecord (3.2.6)   
Using activeresource (3.2.6)   
Using bundler (1.1.3)   
Using chunky_png (1.2.5)   
Using coffee-script-source (1.3.3)   
Using execjs (1.4.0)   
Using coffee-script (2.2.0)   
Using rack-ssl (1.3.2)   
Using json (1.7.3)   
Using rdoc (3.12)   
Using thor (0.15.4)   
Using railties (3.2.6)   
Using coffee-rails (3.2.2)   
Using fssm (0.2.9)   
Using sass (3.2.0.alpha.261)   
Using compass (0.12.2)   
Using jquery-rails (2.0.2)   
Using rails (3.2.6)   
Using sass-rails (3.2.5)   
Using sqlite3 (1.3.6)   
Using uglifier (1.2.6)   
Using zurb-foundation (3.0.5)  

2 个解决方案

#1


3  

Managed to do it with foundation.zurb.com/docs/gem-install.php#simple2.
Github documentation is not up to date.

使用foundation.zurb.com/docs/gem-install.php#simple2。Github文档还没有更新。

#2


0  

Since the links above are no longer correct, for Foundation 3.0, use

由于上面的链接不再正确,对于Foundation 3.0,使用。

compass create <project-name> -r zurb-foundation --using foundation

(can be found on the Foundation Documentation: Compass page)

(可以在Foundation文档中找到:Compass页面)

#1


3  

Managed to do it with foundation.zurb.com/docs/gem-install.php#simple2.
Github documentation is not up to date.

使用foundation.zurb.com/docs/gem-install.php#simple2。Github文档还没有更新。

#2


0  

Since the links above are no longer correct, for Foundation 3.0, use

由于上面的链接不再正确,对于Foundation 3.0,使用。

compass create <project-name> -r zurb-foundation --using foundation

(can be found on the Foundation Documentation: Compass page)

(可以在Foundation文档中找到:Compass页面)