def update
      @achievement = Achievement.find(params[:id])
      @achievement.observe_class.downcase!
      
      respond_to do |format|
        if @achievement.update_attributes(params[:triumph_achievement])
          format.html { redirect_to(@achievement, :notice => 'Achievement was successfully updated.') }
          format.xml  { head :ok }
        else
          format.html { render :action => "edit" }
          format.xml  { render :xml => @achievement.errors, :status => :unprocessable_entity }
        end
      end
    end
def update
      @achievement = Achievement.find(params[:id])
      @achievement.observe_class.downcase!
      
      respond_to do |format|
        if @achievement.update_attributes(params[:triumph_achievement])
          format.html { redirect_to(@achievement, :notice => 'Achievement was successfully updated.') }
          format.xml  { head :ok }
        else
          format.html { render :action => "edit" }
          format.xml  { render :xml => @achievement.errors, :status => :unprocessable_entity }
        end
      end
    end
PUT /achievements/1
 PUT /achievements/1.xml