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: profiles_controller.rb
    path of file: ./repos/viode/app/controllers/settings
    
    the code of the file until where you have to start completion: # frozen_string_li
    
    def show; end

    def update
      if current_user.update(user_params)
        flash[:success] = 'Settings successfully saved.'
        redirect_to settings_profile_path
      else
        render :show
      end
    end