def create
      @page = @question_sheet.pages.build(:label => next_label, :number => @question_sheet.pages.length + 1)
      @all_pages = @question_sheet.pages.find(:all)

      respond_to do |format|
        if @page.save
          format.js
        else
          format.js { render :action => "error.rjs"}
        end
      end
    end
def create
      @page = @question_sheet.pages.build(:label => next_label, :number => @question_sheet.pages.length + 1)
      @all_pages = @question_sheet.pages.find(:all)

      respond_to do |format|
        if @page.save
          format.js
        else
          format.js { render :action => "error.rjs"}
        end
      end
    end
POST /pages