oldhaven/rails/app/controllers/artist_controller.rb
2011-04-04 23:08:49 +04:00

12 lines
278 B
Ruby

class ArtistController < ApplicationController
def view
@artist = Artist.getByName(params[:name])
@albums = ReleaseGroup.getArtistAlbums(@artist.id)
rg_ids = []
@albums.each do |a|
rg_ids << a.id
end
@releases = Release.getReleases(rg_ids, true, true);
end
end