adding haml gem to Gemfile.
1. converting .erb to .haml file. 2. updating haml gem to haml-rails. 3. using the better-errors gem for error handling.
using a ruby loop instead of manually repeating to generate the links in the weeks index.
converted weeks/show from .erb to .haml.
caught bug in weeks dropdown. I need the iteration to be inclusive => i needed the '..' operator instead of '...'.
converting teams/show to haml, from erb.
adding all weekly weekly stats for a given team to the show page for the teams view.
now have rudimentary bar graphs to display assists on the team's show view.
moved barGraph code into its own javascript file. changed main layout to use haml instead of erb. created a layout piece called page_js, where we can place inline javascript.
getting rid of render pages by only loading WeeklyStatView models when they are needed (in the weeks/show view). To do this I put the model creation into their own functions, which can be called upon if needed to be initialized.
added a navbar.
adding some styling to the teams views. converting the teams index to haml.
adding navigation tabs on the left for the teams/show view in order to give the user option to pick between the different types of statistics.
making sure we get the results in week_number order.
adding code to switch the data & re-render svg for each type of basketball statistic (points, 3pm, assists, etc.)