Julian Leviston wrote: > On 20/05/2009, at 3:21 AM, Morgan Morgan > <[email protected] > > wrote: > >> >> r >> r b >> > So you have a model hour, and it belongs to a model hour type and also > belongs to a user? > > Then your controller loads users, :include => hours and hour type > > Then, your view loops the users one row per user, loops one cell per > hour, and prints the type. > > Simple?! > > Blog: http://random8.zenunit.com/ > Twitter: http://twitter.com/random8r > Learn: http://sensei.zenunit.com/ > New video up now at http://sensei.zenunit.com/ real fastcgi rails > deploy process! Check it out now!
hrmm. i guess it would make more sense to do a bunch of db querys and parse small amounts of data instead of doing one big db call and parsing large amounts of data.. i'll see if calms it down when it's more balanced. thank you. -- 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 -~----------~----~----~----~------~----~------~--~---

