```coffeescript
window.events_at_penn ?= {}

Template.new_event.helpers
  'empty_object': {}

Template.new_event.events
  'submit .create-event': (e) ->
    e.preventDefault()
    event = window.events_at_penn.parse_event_from_form $('.create-event')
    Meteor.call('create_event', event, (error, id) ->
      Meteor.Router.to "/event/#{title_id}"
    )
```

Fix bug with undefined title_id in redirect following event creation
user
```coffeescript
window.events_at_penn ?= {}

Template.new_event.helpers
  'empty_object': {}

Template.new_event.events
  'submit .create-event': (e) ->
    e.preventDefault()
    event = window.events_at_penn.parse_event_from_form $('.create-event')
    Meteor.call('create_event', event, (error, id) ->
      Meteor.Router.to "/event/#{event.title_id}"
    )
```
assistant