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

12 lines
278 B
Ruby
Raw Normal View History

2011-04-03 16:21:05 +00:00
class ArtistController < ApplicationController
def view
2011-04-03 18:32:27 +00:00
@artist = Artist.getByName(params[:name])
@albums = ReleaseGroup.getArtistAlbums(@artist.id)
2011-04-04 18:10:22 +00:00
rg_ids = []
2011-04-03 18:32:27 +00:00
@albums.each do |a|
2011-04-04 18:10:22 +00:00
rg_ids << a.id
2011-04-03 18:32:27 +00:00
end
2011-04-04 19:08:49 +00:00
@releases = Release.getReleases(rg_ids, true, true);
2011-04-03 16:21:05 +00:00
end
end