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

11 lines
217 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)
ids = []
@albums.each do |a|
ids << a.id
end
2011-04-03 16:21:05 +00:00
end
end