<%= @artist.name %>

<% @artist.albums.each do |album| %> <% if album.releases.length > 0 %>

<%= album.name %> (<%= album.year %>)

<% releases = album.releases first_release = releases.first %>
<% end %> <% end %>