app/controllers/application_controller.rb
def hmac_id_match_user(user, id)
      return if id.to_i == user.id

      session.clear
      flash['alert-danger'] = 'Hmac failure, Please try again later'
      redirect to '/', 403
    end
# Load user & returns user from session id
Load user & returns user from session id
Load user & returns user from session id
def hmac_id_match_user(user, id)
      return if id.to_i == user.id
      session.clear
      flash['alert-danger'] = 'Hmac failure, Please try again later'
      redirect to '/', 403
    end
def hmac_id_match_user ( user , id ) return if id . to_i == user . id session . clear flash [ 'alert-danger' ] = 'Hmac failure, Please try again later' redirect to '/' , 403 end
Load user & returns user from session id
Load user & returns user from session id
user
id