1 2 3 4 5 6 7 8 9
class CertsController < ApplicationController # GET /cert def show @cert = ClientCertificate.new(free: !logged_in?) render text: @cert.to_s, content_type: 'text/plain' end end