Files
danbooru/app/controllers/artist_versions_controller.rb
albert f051e04550 sync
2010-10-08 18:42:26 -04:00

10 lines
349 B
Ruby

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