You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: location_profiles_controller.rb
    path of file: ./repos/archivesspace/frontend/app/controllers
    
    the code of the file until where you have to start completion: class LocationProfilesController < ApplicationController

  include ExportHelper

  set_access_control  "view_repository" => [:show, :typeahead],
                      "manage_location_profile_record" => [:new, :index, :edit, :create, :update, :delete]

  FACETS = ["location_profile_width_u_sstr", "location_profile_height_u_sstr", "location_profile_depth_u_sstr", "location_profile_dimension_units_u_sstr"]


  def self.FACETS
    FACETS
  end

  def new
    @location_profile = JSONModel(:location_profile).new._always_val
    
  def create
    handle_crud(:instance => :location_profile,
                :model => JSONModel(:location_profile),
                :on_invalid => ->() {
                  return render_aspace_partial :partial => "location_profiles/new" if inline?
                  return render :action => :new
                },
                :on_valid => ->(id) {
                  if inline?
                    @location_profile.refetch
                    render :json => @location_profile.to_hash if inline?
                  else
                    flash[:success] = I18n.t("location_profile._frontend.messages.created")
                    return redirect_to :controller => :location_profiles, :action => :new if params.has_key?(:plus_one)
                    redirect_to(:controller => :location_profiles, :action => :show, :id => id)
                  end