I want to change my application back ground dynamically.For that background image, i'm saving the image in DB with only one row,if i upload new background image it will update the DB first row and it will affect background as well.
here is my view code
<%=ChangeBackdrops.first.media.url%>
here is my css
body {
background-image: url(/../../../images/back.jpg);
background-repeat:no-repeat;
background-position:center center;
background-attachment:fixed;
-o-background-size: 100% 100%, auto;
-moz-background-size: 100% 100%, auto;
-webkit-background-size: 100% 100%, auto;
background-size: 100% 100%, auto;
}
How can I pass my ruby tag in that CSS? That means like this?
background-image: url(<%=ChangeBackdrops.first.media.url%>)