Sort users by reg number (re: #20)

This commit is contained in:
Saverio Trioni
2013-07-23 17:09:10 +02:00
parent 19f06ba51e
commit 7de3751b42

View File

@ -8,7 +8,7 @@
%th= User.human_attribute_name(:phone)
%th= User.human_attribute_name(:alt_phone)
%tbody
- @users.each do |u|
- @users.order(:registration_number).each do |u|
%tr
%th= u.registration_number
%td= u.username