Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Description: The function is a loop to indentify a patient name by user_id and make a list of all
  2. the patients with a link directing the portal to the all models information in one page.
  3.  
  4. ```
  5. <ul>
  6. <% @patient_infos.each do |patient_info| %>
  7. <a href="/admin/<%= patient_info.user_id %>" >
  8. <li>
  9. <strong> <%= patient_info.name%></strong>
  10. </li></a>
  11.  
  12.  
  13. <% end %>
  14. </ul>
  15. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement