This commit is contained in:
albert
2013-03-29 15:37:28 -04:00
parent 6ba0f23542
commit 541dabaaf6
22 changed files with 106 additions and 15 deletions

View File

@@ -5,6 +5,10 @@ class NoteVersionsController < ApplicationController
def index
@search = NoteVersion.search(params[:search])
@note_versions = @search.order("note_versions.id desc").paginate(params[:page])
respond_with(@note_versions)
respond_with(@note_versions) do |format|
format.xml do
render :xml => @note_versions.to_xml(:root => "note-versions")
end
end
end
end