Sha256: ff4c3ac1f9d8baed8ca7ba89f7846a3138f32a1c9b1853e1e0f2e3f29d612099

Contents?: true

Size: 713 Bytes

Versions: 7

Compression:

Stored size: 713 Bytes

Contents

%h1 Users info

%ol
  - User.all.each do |user|
    %li
      %b= user.name
      \-
      - if user.role
        %b role: #{user.role.name}
      - else
        %b User has not role
      \-
      |
      = link_to 'Login now!', autologin_path(:email => user.email)
%p
  %b password:
  %i qwerty

%h1 Edit Users

%ol
  - User.all.each do |user|
    - if user.role
      %li= link_to "Edit user: #{user.name} [#{user.role.name}]",  edit_user_path(user)
    - else
      %li User #{user.name} has not role

%h1 Roles info

%ol
  - Role.all.each do |role|
    %li
      %b= role.name
      \-
      %i= role.description
      \-
      - users_list = role.users.map(&:name).join(', ')
      %b users: [#{users_list}]

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
the_role-2.5.4 spec/dummy_app/app/views/welcome/index.html.haml
the_role-2.5.3 spec/dummy_app/app/views/welcome/index.html.haml
the_role-2.5.2 spec/dummy_app/app/views/welcome/index.html.haml
the_role-2.5.1 spec/dummy_app/app/views/welcome/index.html.haml
the_role-2.5 spec/dummy_app/app/views/welcome/index.html.haml
the_role-2.4 spec/dummy_app/app/views/welcome/index.html.haml
the_role-2.3 spec/dummy_app/app/views/welcome/index.html.haml