Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

_print.css error #24

Open
jalberto opened this issue Apr 4, 2013 · 4 comments
Open

_print.css error #24

jalberto opened this issue Apr 4, 2013 · 4 comments

Comments

@jalberto
Copy link
Contributor

jalberto commented Apr 4, 2013

Hi,

I installed a basic spree with sample data and fancy_spree & rails.3.2.13.

Precompiled assets without errors, but when i try to access i get:

ActionView::Template::Error (store/shared/_print.css isn't precompiled):
2: <%= favicon_link_tag image_path('favicon.ico') %>
3: <%= stylesheet_link_tag 'store/all', :media => 'screen' %>
4:
5: <%= stylesheet_link_tag 'store/shared/_print', :media => 'print' %><%= csrf_meta_tags %>
6: <%= javascript_include_tag 'store/all' %>
7: <!--[if lt IE 9]>

I tryed to copy _print.scss to app/assets/stylesheet/store/shared and changed:

spree_fancy/engine.rb: app.config.assets.precompile << "store/shared/_print.scss"

bur doesn't works

@jalberto
Copy link
Contributor Author

Thanks @jarrrosh Works for me too. So It's a bug?

@chrise86
Copy link

chrise86 commented May 1, 2013

+1 for this issue on 1-3-stable

@mikechau
Copy link

mikechau commented May 5, 2013

@jalberto seems to be related to issue: #2

You can follow a suggestion by @aaronzdavis for #2 (comment) if you do not want to precompile locally every time when deploying to Heroku:

gem 'spree_fancy', :github => 'spree/spree_fancy', :branch => '1-3-stable'
I had to add this precompile line to the production.rb, works without having to precompile locally.
config.assets.precompile += %w( store/shared/_print.css )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@jalberto @chrise86 @mikechau and others