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: settings_controller.rb
    path of file: ./repos/consuldemocracy/app/controllers/admin
    
    the code of the file until where you have to start completion: class Admin::SettingsController < Admin::BaseController
  def index
  end

  def update
    @setting = Setting.find(params[:id])
    @setting.update!(settings_params)

    resp
    
  def update_content_types
    setting = Setting.find(params[:id])
    group = setting.content_type_group
    mime_type_values = content_type_params.keys.map do |content_type|
      Setting.mime_types[group][content_type]
    end
    setting.update! value: mime_type_values.join(" ")
    redirect_to request_referer, notice: t("admin.settings.flash.updated")
  end