1
0
Fork 0
oldhaven/rails/app/controllers/artist_controller.rb

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