def update
      @page = @question_sheet.pages.find(params[:id])

      respond_to do |format|
        if @page.update_attributes(params[:page], :without_protection => true)
          format.js
        else
          format.js { render :action => "error.rjs"}
        end
      end
    end
def update
      @page = @question_sheet.pages.find(params[:id])

      respond_to do |format|
        if @page.update_attributes(params[:page], :without_protection => true)
          format.js
        else
          format.js { render :action => "error.rjs"}
        end
      end
    end
PUT /pages/1