Rails: How to set a background image in rails from css?

后端 未结 14 1452
太阳男子
太阳男子 2020-12-08 06:01

I am using rails 3.2 and i have to set a background for one of the page and i have tried many ways and nothing went right, so looking for some good help. I have tried

14条回答
  •  孤街浪徒
    2020-12-08 06:46

    Ok, hope this helps someone!! I was in a similar situation recently looking to implement an image for a theme. This solution worked for me in a home_page_header.html.erb file provided that you have an image called blog_image.jpeg in your app/assets/images folder:

    
    

    Omega

    Sample text

提交回复
热议问题