Created
April 26, 2014 19:29
-
-
Save thiagovsk/11328863 to your computer and use it in GitHub Desktop.
index
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
<h1>Lista de Usuários</h1> | |
<table > | |
<thead> | |
<tr> | |
<td>Nome</td> | |
<td>Cpf</td> | |
<td>Email</td> | |
<td>Editar usuário</td> | |
<td>Deletar usuário</td> | |
</tr> | |
</thead> | |
<tbody> | |
<% @usuarios.each do |usuarios| %> | |
<tr> | |
<td> <%= usuarios.nome %> </td> | |
<td> <%= usuarios.cpf %> </td> | |
<td> <%= usuarios.email %> </td> | |
<td> | |
<%=link_to raw("<i class=\"icon-white icon-edit \"> Editar Usuário </i>"), edit_usuario_path(usuarios) , class: "btn-small btn-info"%> | |
</td> | |
<td> | |
<%=link_to raw("<i class=\"icon-white icon-remove\"> Deletar Usuário </i>"),usuarios , method: :delete ,data: {confirme: 'Você tem certeza'} , class: "btn-small btn-danger"%> | |
</td> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> | |
<%=link_to raw("<i class=\"icon-white icon-share\"> Cadastrar novo Usuário </i>"), new_usuario_path , class: "btn btn-success"%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment