diff --git a/app/controllers/artists_controller.rb b/app/controllers/artists_controller.rb index 46c8d4343..f6fcc5e15 100644 --- a/app/controllers/artists_controller.rb +++ b/app/controllers/artists_controller.rb @@ -15,7 +15,14 @@ class ArtistsController < ApplicationController def banned @artists = Artist.where("is_banned = ?", true).order("name") - respond_with(@artists) + respond_with(@artists) do |format| + format.xml do + render :xml => @artists.to_xml(:include => [:urls], :root => "artists") + end + format.json do + render :json => @artists.to_json(:include => [:urls]) + end + end end def ban