I want to create a link(HTML Anchor Tag) that contains an img Tag element in my application. I used link_to to produce links but don't know how to generate HTML tags within them.
Do i need to use javascript/jQuery rather than trying it in my application. Any suggestions would be appreciated.
Here it should look like
<a href='/groceries'>
<img src="location" alt="Groceries.jpg">
</a>