Files
danbooru/app/controllers/artist_versions_controller.rb
2010-12-01 17:21:05 -05:00

10 lines
298 B
Ruby

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