basic rails model has_many and belongs_to with group by date
===

I'm a rails newbie so pardon if this is a basic question. I'm setting up some models and the relationships should be pretty basic, but I'm a little stuck in the best way to set everything up.

I'm trying to display a list of seminars that have different times. Here are my two tables:

    create_table "seminars", :force => true do |t|
      t.string   "name"
      t.datetime "created_at", :null => false
      t.datetime "updated_at", :null => false
    end

    create_table "seminar_times", :force => true do |t|
      t.datetime "start_date"
      t.datetime "end_date"
      t.integer  "seminar_id"
      t.datetime "created_at", :null => false
      t.datetime "updated_at", :null => false
    end

I'd like to display my seminars at localhost:3000/seminars like so:

    Intro To Rails		Aug 1	3-5pm and 6-8pm
    How To Juggle		Aug 10 	6-8pm
    Stackoverflow Rocks	Aug 13 	2-5pm or 6-8pm


One seminar can have many different seminar times (which is why i put them into two separate tables). To do this normally with straight SQL I'd join the tables, order by start_date, then group by DAY and by seminar id.

How would I do this the "rails way"?

Here's what I've done so far, but it doesn't seem like the right way to go.

Seminar model:

    class Seminar < ActiveRecord::Base
      attr_accessible :name
      has_many :seminar_times, :dependent => :destroy
      validates :name, :presence => true
    end


SeminarTime model:

    class SeminarTime < ActiveRecord::Base
      attr_accessible :end_date, :seminar_id, :start_date
      belongs_to :seminar, :foreign_key => 'seminar_id'
      default_scope :order => 'start_date'
    end


seminars_controller:

    def index
      @seminars = SeminarTime.group('date(start_date), seminar_id') #THIS LINE ESPECIALLY SEEMS WRONG TO ME
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @seminars }
      end
    end

seminar_times_controller:

    def index
      @seminar_times = SeminarTime.all
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @seminar_times }
      end
    end


routes.rb

    resources :seminars 
    resources :seminar_times
    root to: 'static_pages#home'
    match '/seminars',    to: 'seminars#index'


views/seminars/index.html.erb:

    #this also needs some work. i'm not sure how to loop into that group by statement
    <% @seminars.each do |seminar| %>
      <%= seminar.seminar.name %>
      <%= seminar.start_date %>
      <%= seminar.end_date %>
    <% end %>

I've tried also getting everything through the seminar_times_controller and then routing /seminars to:
    match '/seminars',    to: 'seminar_times#index'
but that also seems kinda off to me.

Hopefully I'm being clear enough. Any guidance is much appreciated. Thanks!