Note that there are some explanatory texts on larger screens.

plurals
  1. PORails 3.1, Blueprint CSS and Heroku
    text
    copied!<p>I've searched through this group and the rest of the Web and found bits and pieces of a solution to my problem, but haven't found anything that really works. </p> <p>Here is my issue. I'm running Rails 3.1 and deploying to the Heroku cedar stack. </p> <p>I have Blueprint in my assets/stylesheets directory.</p> <p>When I try adding this to my application template: </p> <pre><code> &lt;%= stylesheet_link_tag 'blueprint/screen', :media =&gt; "screen, projection" %&gt; &lt;%= stylesheet_link_tag 'blueprint/print', :media =&gt; "print" %&gt; </code></pre> <p>And run this at my command prompt: </p> <pre><code>RAILS_ENV=production bundle exec rake assets:precompile </code></pre> <p>And then deploying I'm getting an error on Heroku that says "blueprint/ screen.css isn't precompiled", yet when I look in the public/assets directory it's there and it's appearing in the manifest. I get this error even if I run the precompile locally before committing and deploying.</p> <p>If I don't put anything in my application template and let Rails find Blueprint, I'll run the precompile manually, deploy and Heroku will load the site. So that's alright. </p> <p>However, I'm getting the URL path on every link. Some reading shows that I need to add ":media => "print" and "screen, projection" to my template, but every time I add the lines to the template Heroku won't load at all because the files aren't precompiled even if I've precompiled them. </p> <p>All help is greatly appreciated.</p>
 

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