class HackUserLastestCodesController < ApplicationController before_action :require_login before_action :find_user_hack, only: [:show] def show ;end private def find_user_hack @my_hack = HackUserLastestCode.find_by(identifier: params[:identifier]) @hack = @my_hack.hack end end