DBServer/app/controllers/documents_controller.rb
## remove a page from the document via the edit action
remove a page from the document via the edit action
remove a page from the document via the edit action
def remove_page
    @page = Page.find(params[:id])
    @document=@page.document
    @page.move_to_new_document
  end
def remove_page @page = Page . find ( params [ :id ] ) @document = @page . document @page . move_to_new_document end
remove a page from the document via the edit action
remove a page from the document via the edit action