# Gatleon Rails add authentication to your website - in 1 minute or less. ## Installation Add this line to your application's Gemfile: ```ruby gem "gatleon-rails" ``` And then execute: ``` $ bundle install ``` Add a profile controller ```ruby class ProfileController < ActionController::Base AUTHFORM_FORM_PUBLIC_KEY = "" # Available at https://authform.gatleon.com. coming soon! AUTHFORM_FORM_SECRET_KEY = "" # Available at https://authform.gatleon.com. coming soon! include Gatleon::Rails::Authform::Concern.new(public_key: AUTHFORM_FORM_PUBLIC_KEY, secret_key: AUTHFORM_FORM_SECRET_KEY) before_action :require_login, only: [:index] def index erb = <<~ERB
You are signed in.
<%= current_user %>
ERB render inline: erb end def signin erb = <<~ERB<%= flash[:error] %>