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

11 lines
217 B
Ruby

class ArtistController < ApplicationController
def view
@artist = Artist.getByName(params[:name])
@albums = ReleaseGroup.getArtistAlbums(@artist.id)
ids = []
@albums.each do |a|
ids << a.id
end
end
end