app/controllers/static_pages_controller.rb
# frozen_string_literal: true
class StaticPagesController < ApplicationController
def create_group_unconfirmed
redirect_to root_path unless signed_in?
end
def hidden_group
end
private
# Store the referrer instead of the current path, so we are redirected
# back to the group page.
#
# See ApplicationController for reference.
def store_user_location
store_location_for(:user, request.referrer)
end
end