HABTM Loops

So, I have a "schedules" table and a "hours" table, joined by a
"hours_schedules" table. Think of the hours table as a category for
when people will schedule themselves to work, which happens in weekly
increments. At any given hour, there will be X number of people
working. I need to represent each worker with an asterisk symbol in
the weekly view. For example,

PEOPLE WORKING

Sunday

# Schema #####################

It finally clicked for me...

# View ############################

<h2>Sunday</h2>

<% for hour in @sunday_hours %>
  <% @schedule_hours =
Hour.find(hour.id).schedules.find(:all, :conditions => "week =
'#{@woy}'") %>
    <%= link_to "#{hour.name}", :controller => "hours", :action =>
'list', :id => hour.id %>:
    <% for schedule in @schedule_hours %>