Sha256: 2c3602574cd767ec60218ddbe96b75b796d2d979d5c3cb28784f87e2b4ea8f82
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
<h1>Listing users</h1> <table> <tr> <% for column in User.content_columns %> <% if User.display?(column.name) %> <th><%= column.human_name %></th> <% end %> <% end %> </tr> <% for user in @users %> <tr> <% for column in User.content_columns %> <% if User.display?(column.name) %> <% if user.readable?(column.name) %> <td><%= user.send(column.name) %></td> <% else %> <td></td> <% end %> <% end %> <% end %> <td><%= link_to 'Show', :action => 'show', :id => user %></td> <td><%= link_to 'Edit', :action => 'edit', :id => user %></td> <td><%= link_to 'Destroy', {:action => 'destroy', :id => user}, :confirm => 'Are you sure?' %></td> </tr> <% end %> </table> <%= link_to 'Previous page', { :page => @user_pages.current.previous } if @user_pages.current.previous %> <%= link_to 'Next page', { :page => @user_pages.current.next } if @user_pages.current.next %> <br /> <%= link_to 'New user', :action => 'new' %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
model_security_generator-0.0.1 | templates/view_list.rhtml |
model_security_generator-0.0.2 | templates/views/list.rhtml |
model_security_generator-0.0.3 | templates/views/list.rhtml |