class UsersController < ApplicationController
	def home
		render 'home'
	end
	def show
    @user = User.find(params[:id])

  end
  def new
  	    @user = User.new

  end
  def create
  	@user = User.new(params[:user])
  	 if @user.save
  	 	log_in @user
  	 	flash[:success] = "Welcome to the Sample App!"
      redirect_to @user
    else
      render 'new'
    end
  end
  
end
