rails foundation
我安装了 一个最简单的 rails app
我想用用 foundation 玩玩 但是有点毛病
求解决
我是这样做的rails new fdemo 根据官网的介绍
group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' # Add these gems gem 'compass-rails' gem 'zurb-foundation' end
配置 gemfile
bundle install
rails g foundation:install
rails g foundation:layout
rails g controllor welcome index
设置root routes rails g foundation:layout
然后安装运行 rails s
得到了 下面的错误
Sass::SyntaxError in Welcome#index
Showing C:/Users/Administrator/RubymineProjects/f1/app/views/layouts/application.html.erb where line #5 raised:
File to import not found or unreadable: foundation/common/ratios. Load path: Sass::Rails::Importer(C:/Users/Administrator/RubymineProjects/f1/app/assets/stylesheets/foundation_and_overrides.scss) (in C:/Users/Administrator/RubymineProjects/f1/app/assets/stylesheets/foundation_and_overrides.scss)
Extracted source (around line #5):
2: <html> 3: <head> 4: <title>F1</title> 5: <%= stylesheet_link_tag "application", :media => "all" %> 6: <%= javascript_include_tag "application" %> 7: <%= csrf_meta_tags %> 8: </head>
Rails.root: C:/Users/Administrator/RubymineProjects/f1
Application Trace | Framework Trace | Full Traceapp/assets/stylesheets/foundation_and_overrides.scss:1 app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___645094616_29566320'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
嗯 我的 windows 还是有问题额 ╮(╯▽╰)╭ 嗯 还是谢谢 帮助了
嗯 好了 刚才还缓存 O(∩_∩)O~
我这里试了一下,没问题。Rails3.2.9 on SUSE Linux
bundle list |grep compass-rails 看看用上了没?
要不bundle update 重新刷一下gems吧...