F
F
FreezkoSS2017-10-03 21:14:26
Ruby on Rails
FreezkoSS, 2017-10-03 21:14:26

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

1 answer(s)
E
Evgeny Kozlov, 2017-10-03
@FreezkoSS

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 question

Ask a Question

731 491 924 answers to any question