diff options
Diffstat (limited to 'app/controllers/admin_user_controller.rb')
-rw-r--r-- | app/controllers/admin_user_controller.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/controllers/admin_user_controller.rb b/app/controllers/admin_user_controller.rb new file mode 100644 index 000000000..f62250ce1 --- /dev/null +++ b/app/controllers/admin_user_controller.rb @@ -0,0 +1,28 @@ +# app/controllers/admin_user_controller.rb: +# Controller for viewing user accounts from the admin interface. +# +# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. +# Email: francis@mysociety.org; WWW: http://www.mysociety.org/ +# +# $Id: admin_user_controller.rb,v 1.1 2008-01-22 18:34:15 francis Exp $ + +class AdminUserController < ApplicationController + layout "admin" + + def index + list + render :action => 'list' + end + + def list + @admin_users = User.paginate :order => "name", :page => params[:page], :per_page => 100 + end + + def show + # Don't use @user as that is any logged in user + @admin_user = User.find(params[:id]) + end + + private + +end |