Sha256: 301b37f3227e4b84d397f44266037c624d5549096da63d4eebf2ed4c31d0438b

Contents?: true

Size: 1002 Bytes

Versions: 22

Compression:

Stored size: 1002 Bytes

Contents

<h1>Rolify</h1>

<h4>Role management library with resource scoping</h4>

<ul>
  <li>Role <b>admin</b>, can access <b>Bossy Boots</b></li>
  <li>Role <b>moderator</b>, can access <b>Use in moderation</b></li>
  <li>Role <b>user</b>, can access <b>Use Me</b></li>
  <li>Role <b>super_user</b>, can access <b>every thing</b></li>
</ul>

<h3>Sample users and passwords</h3>

<table style='width: 800px;'>
  <tr>
    <th>Name</th>
    <th>Email</th>
    <th>Roles</th>
    <th>Be who you wanna be</th>
    <th>Manage Roles</th>
  </tr>
  <% User.all.each do |user| %>
    <tr>
      <td><%= user.name %></td>
      <td><%= user.email %></td>
      <td>
        <ul style='list-style-type: none; padding: 2px; margin: 0px'>
          <% user.role_names.each do |role| %>
            <li><%= role %></li>
          <% end %>
        </ul>
      </td>
      <td><%= link_to "Sign In", quick_sign_in_path(user) %></td>
      <td><%= link_to "Manage", edit_rolify_path(user) %></td>
  </tr>
  <% end %>
</table>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.3.5 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.3.4 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.3.3 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.3.2 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.3.1 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.3.0 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.43 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.42 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.41 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.40 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.39 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.38 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.37 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.36 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.35 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.34 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.33 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.32 after_templates/addons/rolify/app/views/home/index.html.erb
rails_app_generator-0.2.31 after_templates/addons/rolify/app/views/home/index.html.erb