Last active
May 12, 2021 02:58
-
-
Save IsaacGonzalez/e82e7153b80ce3f42471805d56daada0 to your computer and use it in GitHub Desktop.
app/views/persona_recomendacions/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="notice"><%= notice %></p> | |
<h1>Persona Recomendacions</h1> | |
<table> | |
<thead> | |
<tr> | |
<th>Persona</th> | |
<th>Recomendacion</th> | |
<th colspan="3"></th> | |
</tr> | |
</thead> | |
<tbody> | |
<% @persona_recomendacions.each do |persona_recomendacion| %> | |
<tr> | |
<td> | |
<%= Persona.find(persona_recomendacion.persona_id).nombre %> | |
</td> | |
<td> | |
<%= Recomendacion.find(persona_recomendacion.recomendacion_id).descripcion %> | |
</td> | |
<td><%= link_to 'Show', persona_recomendacion %></td> | |
<td><%= link_to 'Edit', edit_persona_recomendacion_path(persona_recomendacion) %></td> | |
<td><%= link_to 'Destroy', persona_recomendacion, method: :delete, data: { confirm: 'Are you sure?' } %></td> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> | |
<br> | |
<%= link_to 'New Persona Recomendacion', new_persona_recomendacion_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="notice"><%= notice %></p> | |
<p> | |
<strong>Persona:</strong> | |
<%= Persona.find(@persona_recomendacion.persona_id).nombre %> | |
</p> | |
<p> | |
<strong>Recomendacion:</strong> | |
<%= Recomendacion.find(@persona_recomendacion.recomendacion_id).descripcion %> | |
</p> | |
<%= link_to 'Edit', edit_persona_recomendacion_path(@persona_recomendacion) %> | | |
<%= link_to 'Back', persona_recomendacions_path %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment