Files
railsgoat/app/controllers/work_info_controller.rb
T
2013-06-03 01:29:16 -04:00

12 lines
260 B
Ruby

class WorkInfoController < ApplicationController
def index
@user = User.find_by_user_id(params[:user_id])
if !(@user)
flash[:error] = "Sorry, no user with that user id exists"
redirect_to home_dashboard_index_path
end
end
end