sass - Rails 4 Asset Pipeline and referencing images in SCSS -


i'm checking out rails 4 beta , when deploy using capistrano (nginx, unicorn, postgres) deploys assetss successful manifest.

eg. logo-515b878aa9fea59fa353f24f11c3ab.png have noticed doesn't upload original file logo.png (without manifest).

i wanted know if normal behaviour or there i'm missing.

and how call thie 'logo.png' file in css file since following doesn't work because it's not using manifested file.

// pages.scss file .logo {  background: url("logo.png") no-repeat scroll 0% 0%; } 

or

// pages.scss file .logo {  background: url(image_path("logo.png")) no-repeat scroll 0% 0%; } 

many thanks.

its kind of rails bug, found answer here

rake assets:precompile rails_env=production 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -