spree_fancy
spree_fancy copied to clipboard
_print.css error
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
Thanks @jarrrosh Works for me too. So It's a bug?
+1 for this issue on 1-3-stable
@jalberto seems to be related to issue: https://github.com/spree/spree_fancy/issues/2
You can follow a suggestion by @aaronzdavis for https://github.com/spree/spree_fancy/issues/2#issuecomment-17148318 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 )