class GroupsController < ApplicationController
  def assign
    user = current_user
    user.group_id = find_group(params[:address])

    if user.save
      redirect_to root_path
    else
      redirect :back
    end
  end

  private

  def find_group(address_hash)
    Group.find_by(address_hash).id
  end

end

class GroupsController < ApplicationController
  def inquire
  end

  def assign
    user = current_user
    user.group_id = find_group(params[:address])

    if user.save
      redirect_to root_path
    else
      redirect :back
    end
  end

  private

  def find_group(address_hash)
    Group.find_by(address_hash).id
  end

end

Add a new action to the Groups Controller to prompt a user to provide their building location.
Add a new action to the Groups Controller to prompt a user to provide
their building location.
