This commit is contained in:
Toks
2013-04-05 16:44:25 -04:00
parent 3648db0928
commit 42cb4db339

View File

@@ -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