I am facing an issue in my rails app where I have a view containing a div with various content, including links. My goal is to make the entire div clickable.
Here is a snippet of code from my view.html.erb file:
<a href="/google">
<div class="container">
content with other anchor tags
</div>
</a>
However, when rendered, it appears like this:
<a href="/google"></a>
<div class="container">
<a href="/google"></a>
content with other anchor tags
</div>
Does anyone have any suggestions on how to resolve this?