Note that there are some explanatory texts on larger screens.

plurals
  1. POrake assets:precompile not working (Rails 3.1.3 edition)
    primarykey
    data
    text
    <p>After review, this question has been asked <a href="https://stackoverflow.com/questions/6701010/rails-3-1-using-images-under-app-assets-images-subdirectory">many</a>, <a href="https://stackoverflow.com/questions/8048164/file-png-isnt-precompiled">many</a>, <a href="http://www.google.com/url?sa=t&amp;rct=j&amp;q=sass-rails%203.1%20rake%20aborted%20image%20assets%20precompile%20%20rails%203.1&amp;source=web&amp;cd=1&amp;ved=0CBwQFjAA&amp;url=https%3A%2F%2Fgithub.com%2Frails%2Frails%2Fissues%2F2765&amp;ei=hu3gTvqILsf30gHawMiZBw&amp;usg=AFQjCNGoZyb1Dd45AgEYd6ioNLCNP2sXCg&amp;sig2=CU8q5CgqXN7V7ZQ2fE7VAg" rel="nofollow noreferrer">many</a> times. Yet I still don't grok why <code>rake assets:precompile</code> fails.</p> <p>I can view the following results from my browser using local server (e.g. thin):</p> <pre><code>body{ @include background-image(image-url('my_image.png')); background-repeat: repeat; ... ... } </code></pre> <p>(NOTE: image-path doesn't seem to work at all and I'm using thoughtbot bourbon as SCSS lib)</p> <p>Yet every time I run precompile I get the following (short trace):</p> <pre><code>rake aborted! images/my_image.png isn't precompiled (in /path/to/myapp/app/assets/stylesheets/application.css.scss) Tasks: TOP =&gt; assets:precompile (See full trace by running task with --trace) </code></pre> <p>This <a href="https://stackoverflow.com/questions/7647691/ruby-on-rails-3-1-assetsprecompile-and-images">post</a> suggests that I change my production.rb file, which I did and it compiled my image and rake now complains that I have an undefined mixin <code>'border-radius'</code>. Perhaps this was the next exception, but I am not so sure. And everything works locally.</p> <p>Rails Guides (3.1.3) explicitly states setting the value to <strong>true</strong></p> <pre><code>'uses more memory, performs poorer than the default and is not recommended' </code></pre> <p>So now I have two problems. Performance downgrade and my SCSS library now has undefined mixins.</p> <p>I would like to solve the production deployment issue resulting from <code>rake assets:precompile</code>. My Gemfile asset group looks like this:</p> <pre><code>group :assets do gem 'sass-rails', " ~&gt; 3.1.0" gem 'coffee-rails', "~&gt; 3.1.0" gem 'uglifier' gem 'zurb-foundation' gem 'bourbon' end </code></pre>
    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.
 

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