This repository has been archived on 2020-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
counter/app/controllers/counter_controller.rb

11 lines
185 B
Ruby

class CounterController < ApplicationController
before_action :associate!
def show; end
private
def associate!
redirect_to cluster_path unless session[:cluster]
end
end