Topic: First project, need help setting up a Model.
I have completed most of the blog tutorials from the main rails site, but I got itchy to try out something on my own.
I am going to develop a little site which will allow me and my brother to record the results of the many games of FIFA we play.
I would like the site to allow me to create a new "Event" or "Games Session" and from within this event I woud be able to create new best-of-3 input fields, which would simply spawn a few input boxes to allow me to enter the scores for those games.
Should I initially have an Events model which has_many Game models? Or should all of this fit into one model?
My next question is relating as to how I should best display this information. I would ideally like to have everything work within one page, the creating of events would be merged with the viewing of existing events; I would be simply adding a new event to the top of the list of old ones.
Would this be a case of using partials for Event/new and Event/ to get them to display next to each other in a page? Is this a good idea?
Would it be possible to have your opinion as to how you would approach this?
Last edited by SmokingKipper (2012-09-04 09:16:10)