I'm setting up a music catalogue to learn my way around RoR. In
index.html.erb I would like to show the band name instead of the id.
What is the proper way to do this?
class Record < ActiveRecord::Base
class Band < ActiveRecord::Base
<% @records.each do |record| %>
<td><%=h record.band.name %></td>
<td><%=h record.title %></td>
<td><%=h record.description %></td>