pfletch1023/Gandalf — pull request #26 by rafi-khan (2012-11-22 12:48:54+00:00)
Title: Refactoring code

#### Make sure to read the comments I made.

In backbone, instead of doing

@$("#cal-day-container").append(view.render(events).el)

You can do

view = new Gandalf.Views.Events.CalendarWeek(startDate)
@$("#calendar-container").html(view.el)

and in `Events.CalendarWeek`:

initialize(params): ->
@render(params)

Which i think is a bit cleaner. I refactored to that when it made sense.

Also, i added some things to the seeds file (as well as an addition to the migration to add the event location address) so rake drop, create, migrate and seed!
I couldn't help but tweak the calendar interface...check out the css its pretty nice.