Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When I run <code>rake assets:precompile</code> for your application I get the following output</p> <pre><code>➜ novulty git:(master) ✗ rake assets:precompile /Users/deefour/.rbenv/versions/1.9.3-p125/bin/ruby /Users/deefour/.rbenv/versions/1.9.3-p125/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets rake aborted! Undefined variable: "$baseLineHeight". (in /Users/deefour/.rbenv/versions/1.9.3-p125/gemsets/novulty/gems/bootstrap-sass-2.1.0.1/vendor/assets/stylesheets/bootstrap/_accordion.scss) Tasks: TOP =&gt; assets:precompile:primary (See full trace by running task with --trace) rake aborted! Command failed with status (1): [/Users/deefour/.rbenv/versions/1.9.3-p125/...] Tasks: TOP =&gt; assets:precompile (See full trace by running task with --trace) rake assets:precompile 12.50s user 1.21s system 99% cpu 13.744 total </code></pre> <p>I'm not sure what your intention is, but you have </p> <ul> <li><code>app/asssets/bootstrap.min.css</code> being included in <code>app/assets/application.css</code></li> <li><code>gem 'bootstrap-sass'</code> in your <code>Gemfile</code> which appears to cause <code>bootstrap-sass-2.1.0.1/vendor/assets/stylesheets/bootstrap/_accordion.scss</code> <em>(among other files)</em> to be added to your pipeline even though they're not included in require lines in <code>app/assets/application.css</code></li> </ul> <p>It seems like you have the bootstrap gem included to use it's Javascript plugins, but are trying to omit the SASS files in favor of the hard-coded, minified CSS file?</p> <p>In any event, the error I get says that the <code>$baseLineHeight</code> SASS variable is not defined for a line in that gem file's asset - an asset you otherwise appear to ignore <em>(from the best I can tell)</em>.</p> <p>I then did the following</p> <ol> <li><p>Commented out the <code>bootstrap-sass</code> gem in your <code>Gemfile</code></p> <pre><code>#gem 'bootstrap-sass' </code></pre></li> <li><p>Ran <code>bundle</code></p></li> <li>Ran <code>rake assets:clean</code></li> <li><p>Removed the following require lines from your <code>app/assets/application.js</code> because they were coming from the <code>bootstrap-sass</code> gem I removed in <strong>1.</strong> above</p> <pre><code>//= require bootstrap-transition //= require bootstrap-button //= require bootstrap-carousel //= require bootstrap-collapse //= require bootstrap-tab </code></pre></li> <li><p>Ran <code>rake assets:precompile</code></p></li> </ol> <p>This results in the following <code>public/assets/manifest.yml</code>.</p> <ul> <li><a href="https://gist.github.com/d29f70b047c7b0606263" rel="nofollow">https://gist.github.com/d29f70b047c7b0606263</a></li> </ul> <p>I think you need to either of the following</p> <ul> <li>Use the <code>bootstrap-sass</code> gem as intended. Include the SASS files in your <code>app/assets/application.css</code> <em>(doing this it a bit outside the scope of this question)</em></li> <li>Get rid of the <code>bootstrap-sass</code> gem as I have above, and include the necessary Javascript files as assets in your <code>vendor/assets/javascripts</code> directory <em>(which is where <code>app/assets/stylesheets/bootstrap.min.css</code> belongs too - <code>vendor/assets/stylesheets</code>)</em></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload