I am using spree 2.1.5, rails 4.0.2, sass-rails 4.0.0.
The spree documentation at http://guides.spreecommerce.com/developer/asset.html indicates the use of the vendor / assets / stylesheets folder. However, the examples I see in the spree stylesheet override Github and other search queries show that many people use the app / assets / stylesheets folder.
Is it better to override spree styles in my_store / app / assets / stylesheets folder? Or my_store / vendor / assets / stylesheets?
css "" - app/assets/stylesheets, . css vendor/assets/stylesheets, .
Spree Rails - spree rails. : " ?" . . , , / Spree, ( , ) .
http://guides.rubyonrails.org/asset_pipeline.html:
: /, lib/ /.app/assets , , , JavaScript .lib/assets - , , ./ - , , JavaScript CSS.
: /, lib/ /.
: , , app/assets/stylesheets.
app/assets/stylesheets
back-end spree rvm , , decorators ( , , ). ( ) , mainapp/app/views/spree/admin/shared/_header.html.erb
decorators
mainapp/app/views/spree/admin/shared/_header.html.erb
, spree products_controller decorators/products_controller_decorator.rb
products_controller
decorators/products_controller_decorator.rb
Spree::ProductsController.class_eval do #mychanges end
Source: https://habr.com/ru/post/1529266/More articles:app.get (name) vs app.get (path, [callback ...], callback) in Express - node.js"Attempting to read or write protected memory." when adding an item to the list <> - c #Start setting for activity alias - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1529264/how-to-check-if-a-migration-needs-to-be-ran-or-did-run-with-fluent-migrator&usg=ALkJrhg25gvTdZqniMAa3gi3905PjbNu5AHow to write a self-replaceable / update binary? - c ++Debugging multi-threaded code C #: Is it possible to join one thread and save the rest? - debuggingPlay2 adds new field to JsObject - jsonHow to read data from a file and then check data and insert data into database operations asynchronously - c #Clojure java interop optimization - clojureКак упростить повторные перенаправления в bash - linuxAll Articles