RAILS adding image through home.scss file or any .scss file

For working on .scss file we have to take care of how to add an image though this file.
So first of all we have to use simple background-image tag
background-image: url(‘your image url’);
now add these lines ,
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
the reason behind this is that .scss files cant add image as it does not have permissions so we have to change the webkit config in order to use.
I hope it will work.

Leave a comment