open modal with link_to

Asked

Viewed 204 times

0

Well, I’ve never done and I’ve searched a lot of sites and I can’t find anything that does what I need. I need to make a modal appear from a link_to, the person when clicking on the link_to opens the modal, thanks.

  • 1

    See if it helps http://stackoverflow.com/questions/15152486/how-to-add-bootstrap-modal-with-link-to-so-the-link-content-open-in-modal

2 answers

1


0

I found this solution today from idem a need of mine and it worked.

Answer by Boris Bresciani.

<%= link_to 'Click Here', '#myModal', 'data-toggle' => 'modal' %> 

Browser other questions tagged

You are not signed in. Login or sign up in order to post.