From b93619b221d988d8b61db0f65432ab01be371c3c Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 19 Apr 2009 13:53:24 +0200 Subject: added basic list of users --- app/controllers/users_controller.rb | 1 + app/views/users/index.html.erb | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 16604fc..7e8fc9b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -3,6 +3,7 @@ class UsersController < ApplicationController layout 'admin' def index + @users = User.all end def new diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 51968c8..f0b5b28 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -1,2 +1,12 @@ -

Users#index

-

Find me in app/views/users/index.html.erb

+

Users

+ + + + + + <% @users.each do |user| %> + + + + <% end %> +
login
<%= user.login %>
\ No newline at end of file -- cgit v1.3