diff options
author | francis <francis> | 2008-01-22 18:34:15 +0000 |
---|---|---|
committer | francis <francis> | 2008-01-22 18:34:15 +0000 |
commit | acb14cc4db29f9cf1021a47baf4ecf0d28809115 (patch) | |
tree | eb64e5ad7de133f9a3bfcf7fe105f9d6b25255f0 /app/controllers/admin_user_controller.rb | |
parent | 9fcb41f57d9a88d3e3fcde66dc74bbba7e452ef6 (diff) |
Basic admin pages for user accounts.
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 |