Simplified, I have the following relationships ....

term has many swimming_classes and a swimming_class belongs to a term
swimming_pool has many swimming_classes and a swimming_class belongs to a
swimming_pool

terms (date_from)------  swimming_classes (start_date) ------ swimming_pools
(name)

I want to order my output as ....

Term (date_from DESC)
    Swimming Pool (name ASC)
        Swimming Class (start_date DESC)
        Swimming Class (start_date DESC)
        Swimming Class (start_date DESC)
    Swimming Pool (name ASC)
        Swimming Class (start_date DESC)
        Swimming Class (start_date DESC)
        Swimming Class (start_date DESC)

etc.

In my controller, I'm currently just getting terms (@current_term =
Term.find_current_term)
and then pass that off to the view but this leaves me a lot of work to do to
get the output I need. It seems I have to jump about a bit and it's not
nice..

If someone can just point me to the right place where I can read up on
displaying data where data doesn't run as nice as Invoice -> Order ->
LineItem

CIA

-ants
--

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to