view changes

This commit is contained in:
albert
2011-08-22 16:28:31 -04:00
parent 24bf21540a
commit 2b7a8f2d67
10 changed files with 47 additions and 8 deletions

View File

@@ -12,6 +12,11 @@ class ArtistsController < ApplicationController
respond_with(@artist)
end
def banned
@artists = Artist.where("is_banned = ?", true).order("name")
respond_with(@artists)
end
def index
@search = Artist.search(params[:search])
@artists = @search.paginate(params[:page])