I am working on an application using Bootstrap as a framework in Rails (bootstrap-sass). What I want to do is add a sweet background image, but I cannot override the white background of the body no matter what I try.
Has anyone been successful in this? What do I need to change or add to make this happen?
In addition to trying other things, I even tried wrapping all the contents in the body in a div with id, and then calling this class in the user css.scss file, where I successfully configured other aspects of Bootstrap.
The code I added with id:
html body #bgimage { background-image: image-url('/images/cityscape.jpg'); }
Edit: I just checked the errors on the local development server, and I have this: ActionController :: RoutingError (No route matches [GET] "/assets/images/cityscape.jpg"): / Edit
Thanks!
source share