Possibly Auditorium has_many Rows Row has_many Seats Seat belongs_to Row Row belongs_to Auditorium
Colin 2009/5/15 pb pb <[email protected]> > > Hey, > > Is there any way I can have a model to store an N by N integer matrix? > Something that would be able to keep record of rows and seats. > > n[i][j] = 1 if the seat is empty > n[i][j] = 2 if the seat is reserved > -- > Posted via http://www.ruby-forum.com/. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

