26 lines
468 B
Plaintext
26 lines
468 B
Plaintext
|
%h1 Listing users
|
||
|
|
||
|
%table
|
||
|
%tr
|
||
|
%th Login
|
||
|
%th Email
|
||
|
%th Lastname
|
||
|
%th Firstname
|
||
|
%th
|
||
|
%th
|
||
|
%th
|
||
|
|
||
|
- @users.each do |user|
|
||
|
%tr
|
||
|
%td= user.login
|
||
|
%td= user.email
|
||
|
%td= user.lastname
|
||
|
%td= user.firstname
|
||
|
%td= link_to 'Show', user
|
||
|
%td= link_to 'Edit', edit_user_path(user)
|
||
|
%td= link_to 'Destroy', user, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||
|
|
||
|
%br
|
||
|
|
||
|
= link_to 'New User', new_user_path
|