Answer the question
In order to leave comments, you need to log in
Is it possible to link to a div element using ruby on rails?
It is necessary to make the div block a link, but I don’t know how exactly to use link to in this example, is it possible at all? Or will I have to use JS to solve this problem?
Answer the question
In order to leave comments, you need to log in
Example from documentation link :
<%= link_to(@profile) do %>
<strong><%= @profile.name %></strong> -- <span>Check it out!</span>
<% end %>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question