app/controllers/user_workspaces_controller.rb
# update a user_analysis in this benchmarking workspace
update a user_analysis in this benchmarking workspace
update a user_analysis in this benchmarking workspace
def update_user_analysis
    @user_analysis = @user_workspace.user_analysis
    respond_to do |format|
      if @user_analysis.update(user_analysis_params)
        format.html { redirect_to user_workspace_path(project: @user_workspace.namespace, name: @user_workspace.name), notice: "'#{@user_analysis.full_name}' was successfully updated." }
        format.json { render :show, status: :created, location: @user_workspace }
      else
        format.html { render :show }
        format.json { render json: @user_analysis.errors, status: :unprocessable_entity }
      end
    end
  end
def update_user_analysis @user_analysis = @user_workspace . user_analysis respond_to do | format | if @user_analysis . update ( user_analysis_params ) format . html { redirect_to user_workspace_path ( project : @user_workspace . namespace , name : @user_workspace . name ) , notice : "'#{@user_analysis.full_name}' was successfully updated." } format . json { render :show , status : :created , location : @user_workspace } else format . html { render :show } format . json { render json : @user_analysis . errors , status : :unprocessable_entity } end end end
update a user_analysis in this benchmarking workspace
update a user_analysis in this benchmarking workspace