Add artist commentary, fixes #2024

This commit is contained in:
Toks
2013-11-19 10:37:02 -05:00
parent fab4e81669
commit fd4c8c3cd3
16 changed files with 347 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
class ArtistCommentaryVersionsController < ApplicationController
respond_to :html, :xml, :json
def index
@commentary_versions = ArtistCommentaryVersion.search(params[:search]).order("artist_commentary_versions.id desc").paginate(params[:page], :limit => params[:limit])
respond_with(@commentary_versions) do |format|
format.xml do
render :xml => @commentary_versions.to_xml(:root => "artist-commentary-versions")
end
end
end
end