Permalink
Browse files

stub view for users, show action put into users controller (l6.24/l6.25)

  • Loading branch information...
1 parent 2676cdc commit 246cc9d93b2159930f92e9cb2ef67c0106de2101 @jbfink committed Jan 3, 2011
Showing with 4 additions and 0 deletions.
  1. +3 −0 app/controllers/users_controller.rb
  2. +1 −0 app/views/users/show.html.erb
@@ -1,4 +1,7 @@
class UsersController < ApplicationController
+ def show
+ @user = User.find(params[:id])
+ end
def new
@title = "Sign up"
end
@@ -0,0 +1 @@
+<%= @user.name %>, <%= @user.email %>

0 comments on commit 246cc9d

Please sign in to comment.