spree_fancy icon indicating copy to clipboard operation
spree_fancy copied to clipboard

_print.css error

Open jalberto opened this issue 11 years ago • 4 comments

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 avatar Apr 04 '13 23:04 jalberto

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

jalberto avatar Apr 18 '13 23:04 jalberto

+1 for this issue on 1-3-stable

chrise86 avatar May 01 '13 06:05 chrise86

@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 )

mikechau avatar May 05 '13 04:05 mikechau