fixes #1204
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user