implemented find artist

This commit is contained in:
albert
2011-10-03 15:02:12 -04:00
parent 043e674036
commit ba9aa94e31
4 changed files with 37 additions and 13 deletions

View File

@@ -20,7 +20,11 @@ class ArtistsController < ApplicationController
def index
@search = Artist.search(params[:search])
@artists = @search.paginate(params[:page])
respond_with(@artists)
respond_with(@artists) do |format|
format.json do
render :json => @artists.to_json(:include => [:urls])
end
end
end
def search