From d35ed776995b8b28f55b9dace633b58bfc62259c Mon Sep 17 00:00:00 2001 From: Shanil Puri Date: Sat, 27 Sep 2014 00:01:42 -0400 Subject: [PATCH] Adding role field to display of users for admin --- app/views/admin/users/index.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb index 2e1b688..150f214 100644 --- a/app/views/admin/users/index.html.erb +++ b/app/views/admin/users/index.html.erb @@ -9,6 +9,7 @@ User Id User Name User Email + User Role @@ -16,8 +17,8 @@ <%= user.id %> <%= user.name %> - <%= user.email %> + <%= user.roles.empty? ? "Sample Role" : user.roles.first.name %> <% end %> @@ -33,7 +34,7 @@ "aoColumns": [ null, null, -// { "bSearchable": false }, + null, null ] } ); });