CivicTechAtlanta / connector

A management tool for the brigade's projects
BSD 3-Clause "New" or "Revised" License
4 stars 12 forks source link

Fix @events bug #49

Closed Bartlebyy closed 8 years ago

Bartlebyy commented 8 years ago

Problem

When loading the main page in my local dev environment, I had no events for the future, which caused the page to crash.

Cause

It crashed because of the line @events.title. The method title could not be called on nil.

Solution

If @events is nil it will now show 'No Events Posted.' I also added the gem 'better errors' to help with debugging.

luigi commented 8 years ago

:fireworks:

Thanks!