class ArtistVersionsController < ApplicationController respond_to :html, :xml, :json def index @artist_versions = ArtistVersion.search(params[:search]).order("id desc").paginate(params[:page], :search_count => params[:search]) respond_with(@artist_versions) end end