Fix event's badge links for rails 3.