Heyya, I am working on a apartments rent model.
Some apartments are individual with address, price ... fields and the model for this is streightforward. Some apartments are a collection of apts in a complex with the same address but different price, bedroom number ... What is a good way to structure this difference. I was thinking about adding to the Apartments model a "belongs to many" additional model. This child model would contain info on the apartments belonging to a multi unit complex. But searching by price range sounds little messy in this case, with duplicate addresses resolving and combing through apartments and child complex model for pricing Any suggestions are very welcome -- 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 -~----------~----~----~----~------~----~------~--~---

