Foundationをインストールしましたが、app.scssファイルを編集して保存すると、プロジェクトのsassフォルダーに「app.css」ファイルと「config.rb」ファイルが作成されます。その「app.css」ファイルを開くと、これが表示されます
Syntax error: File to import not found or unreadable: foundation/common/ratios.
そしてその下で私はこれを手に入れます:
File to import not found or unreadable: foundation/common/ratios.
Load paths:
/Applications/MAMP/htdocs/WebApp02/sass
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets
Compass::SpriteImporter
on line 1 of /Applications/MAMP/htdocs/WebApp02/sass/_settings.scss
from line 2 of /Applications/MAMP/htdocs/WebApp02/sass/app.scss
それから私の宝石への道の束。
誰かがなぜそれが起こっているのか説明できるかどうか疑問に思う前に、それは私のsassフォルダーにapp.cssとconfig.rbファイルを作成しませんでした。Compassは引き続き「stylesheet」フォルダーのapp.cssに準拠していますが、今後エラーが発生しないようにこれを修正したいと思います。
config.rbファイルは次のようになります
require 'zurb-foundation'
Require any additional compass plugins here.
Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
You can select your preferred output style here (can be overridden via the command line):
output_style = :expanded or :nested or :compact or :compressed
To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true