openstreetmap as link

I am using openlayers gem to show a openstreetmap as div in a a rails app
how can I make this div as a link to an other page in the rails app using link_to tag


<%= link_to('my_link') do %>
<% end %>

You can put a div inside of the generated by link_to and this will work for you but putting block elements inside of is not really good practice. Instead you could try instead of