Sha256: f277c49d29a08cb8e620c49f02294c575fe7c60959ca425a530f8de84318ea73
Contents?: true
Size: 524 Bytes
Versions: 5
Compression:
Stored size: 524 Bytes
Contents
<table id="usertable"> <thead> <tr> <th>Username</th> <th>Name</th> <th>Level</th> <th> </th> </tr> </thead> <tbody> <% @users.each do |user| -%> <tr> <td><%= user.username %></td> <td><%= user.name %></td> <td><%= user.is_admin? ? "Admin" : "User" %></td> <td><%= link_to 'Delete', :controller => 'user', :action => 'destroy', :id => user.id %></td> </tr> <% end -%> </tbody> </table> <p><%= link_to 'Create New User', :controller => 'user', :action => 'new' %></p>
Version data entries
5 entries across 5 versions & 1 rubygems