This commit is contained in:
albert
2012-12-24 17:03:53 -05:00
parent c4f54b57de
commit 06c259188d

View File

@@ -21,6 +21,9 @@ class ArtistsController < ApplicationController
@search = Artist.search(params[:search])
@artists = @search.paginate(params[:page])
respond_with(@artists) do |format|
format.xml do
render :xml => @artists.to_xml(:include => [:urls])
end
format.json do
render :json => @artists.to_json(:include => [:urls])
end