mardi 20 novembre 2018

How to open a bootstrap modal using rails link_tag and remote: true

I am usinge rails 5.0.2 My view page code is:

 <%= link_to  'Download files',cader_history_path(:job_id => @check_cader[0].job_id), :remote => true, class: "btn btn-link", 'data-toggle' => 'modal', 'data-target' => '#files' %>

But its did not open the modal, after making this call as remote: true Is their any other way round thanks in advance

Aucun commentaire:

Enregistrer un commentaire