Sha256: 16a4480810f13917b9f6814651b0ac6803c4190a44f4fc765260ef2a6f614274

Contents?: true

Size: 634 Bytes

Versions: 22

Compression:

Stored size: 634 Bytes

Contents

<div id="<%= dom_id user %>">
  <p>
    <strong>Name:</strong>
    <%= user.name %>
  </p>

  <p>
    <strong>Email:</strong>
    <%= user.email %>
  </p>

  <div>
    <strong>Current Roles:</strong>
    <%= user.roles.where(resource_type: nil).map { |role| role.name.capitalize }.join(', ') %>
  </div>

  <div>
    <pre>
    <code>
    <% user.roles.each do |role| %>
      <%= 
        extra_info = if role.resource_type
          " (#{role.resource_type}: #{role.resource_id})"
        else
          ""
        end
        "#{role.id} - #{role.name}, #{extra_info}"
      %>
    <% end %>
    </code>
    </pre>
  </div>

</div>

Version data entries

22 entries across 22 versions & 1 rubygems

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