class AgentsController < ApplicationController
def dashboard
if user_signed_in?
@agent_missions = current_user.mission_agents
else
redirect_to(new_user_session_path, alert: (t 'agent.not_logged_in'))
end
end
def list
@users = User.all
end
def show
@user = User.find_by_id(params[:id])
end
end
|