I have an table with a background image but I do not know how to load
the image.
In general I use a code line like
"<td height="50" background="../images/5.png">"
but this do not work, because the directory changes, for example if I
open a sub page of my controller, the picture is gone. Please just tell
me how to use the image_tag with the background tag in html.
I have an table with a background image but I do not know how to load
the image.
In general I use a code line like
"<td height="50" background="../images/5.png">"
but this do not work, because the directory changes, for example if I
open a sub page of my controller, the picture is gone. Please just tell
me how to use the image_tag with the background tag in html.
I tried <td height="150" background=" <=%image_path("1.png")%> ">
but it does not work ! How to tell ruby on rails it should render the
command when using it inside a html command ?