html - Requesting multiple partials with link tag in Rails -
i have list of users has conversation , progress of own. when click user on list, want request , render both conversation , progress partials of user.
<% @patients.each |patient| %> <tr> <td> <%= image_tag("doctor/avatar.png", :alt => "user", :style => 'width: 40px', class: "img-responsive") %> </td> <td> <%= link_to patient.name, conversation_path(patient.conversation.id), :remote => true, class: 'grp', :style => "font-weight:bold; color:#000" %> </td> </tr>
by link_to
tag, able render conversation partial.
// show.js.erb conversation $("#chats").html("<%= escape_javascript render(@conversation) %>");
however, don't know how request conversation , progress @ same time. can make multiple request link_to tag?
Comments
Post a Comment