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
1- Add a generic modal to your layout with i.e #defaultModal id. 2- In your controller js.erb response file, find that modal and replace its content with your html content and show modal.
js.erb file
default modal html file