500 Internal server error on viewing submissions
When viewing a paper submission, an error related to the ActionView::Template is thrown:
Started GET "/en/malmo2018/events/445" for 84.145.190.70 at 2017-12-26 14:55:20 +0000
Processing by EventsController#show as HTML
  Parameters: {"locale"=>"en", "conference_acronym"=>"malmo2018", "id"=>"445"}
  Conference Load (0.6ms)  SELECT  "conferences".* FROM "conferences" WHERE "conferences"."acronym" = $1 LIMIT 1  [["acronym", "malmo2018"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  ConferenceUser Load (0.4ms)  SELECT "conference_users".* FROM "conference_users" WHERE "conference_users"."user_id" = $1 AND "conference_users"."conference_id" = $2  [["user_id", 5], ["conference_id", 2]]
  Event Load (0.3ms)  SELECT  "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1  [["id", 445]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CallForParticipation Load (0.7ms)  SELECT  "call_for_participations".* FROM "call_for_participations" WHERE "call_for_participations"."conference_id" = $1 LIMIT 1  [["conference_id", 2]]
  Rendered events/_details_tabs.html.haml (1.3ms)
  Conflict Load (0.4ms)  SELECT "conflicts".* FROM "conflicts" WHERE "conflicts"."event_id" = $1  [["event_id", 445]]
  Track Load (0.4ms)  SELECT  "tracks".* FROM "tracks" WHERE "tracks"."id" = $1  ORDER BY "tracks"."name" ASC LIMIT 1  [["id", 48]]
  Ticket Load (0.3ms)  SELECT  "tickets".* FROM "tickets" WHERE "tickets"."event_id" = $1 LIMIT 1  [["event_id", 445]]
  EventPerson Load (0.4ms)  SELECT DISTINCT "event_people".* FROM "event_people" WHERE "event_people"."event_id" = $1 AND "event_people"."event_role" IN ('speaker', 'moderator', 'session_contributor')  [["event_id", 445]]
  Person Load (0.8ms)  SELECT "people".* FROM "people" WHERE "people"."id" IN (5)
  Rendered events/show.html.haml within layouts/application (20.8ms)
Completed 500 Internal Server Error in 34ms (ActiveRecord: 4.6ms)
ActionView::Template::Error (undefined method `*' for nil:NilClass):
    72:       %h2 Scheduling
    73:       %p
    74:         %b Time slots:
    75:         = format_time_slots @event.time_slots
    76:       - if can? :crud, Event
    77:         %p
    78:           %b Start time:
  app/helpers/events_helper.rb:24:in `format_time_slots'
  app/views/events/show.html.haml:75:in `_app_views_events_show_html_haml___2740031185200387320_70244768522760'
  app/controllers/events_controller.rb:192:in `show'
Curiously, for an event where no people are associated with, the page renders correctly:
Started GET "/en/malmo2018/events/443" for 84.145.190.70 at 2017-12-26 14:55:50 +0000
Processing by EventsController#show as HTML
  Parameters: {"locale"=>"en", "conference_acronym"=>"malmo2018", "id"=>"443"}
  Conference Load (0.5ms)  SELECT  "conferences".* FROM "conferences" WHERE "conferences"."acronym" = $1 LIMIT 1  [["acronym", "malmo2018"]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  ConferenceUser Load (0.4ms)  SELECT "conference_users".* FROM "conference_users" WHERE "conference_users"."user_id" = $1 AND "conference_users"."conference_id" = $2  [["user_id", 5], ["conference_id", 2]]
  Event Load (0.3ms)  SELECT  "events".* FROM "events" WHERE "events"."id" = $1 LIMIT 1  [["id", 443]]
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  CallForParticipation Load (0.4ms)  SELECT  "call_for_participations".* FROM "call_for_participations" WHERE "call_for_participations"."conference_id" = $1 LIMIT 1  [["conference_id", 2]]
  Rendered events/_details_tabs.html.haml (1.3ms)
  Conflict Load (0.3ms)  SELECT "conflicts".* FROM "conflicts" WHERE "conflicts"."event_id" = $1  [["event_id", 443]]
  Track Load (0.3ms)  SELECT  "tracks".* FROM "tracks" WHERE "tracks"."id" = $1  ORDER BY "tracks"."name" ASC LIMIT 1  [["id", 48]]
  Ticket Load (0.3ms)  SELECT  "tickets".* FROM "tickets" WHERE "tickets"."event_id" = $1 LIMIT 1  [["event_id", 443]]
  EventPerson Load (0.4ms)  SELECT DISTINCT "event_people".* FROM "event_people" WHERE "event_people"."event_id" = $1 AND "event_people"."event_role" IN ('speaker', 'moderator', 'session_contributor')  [["event_id", 443]]
  Conference Load (0.4ms)  SELECT  "conferences".* FROM "conferences" WHERE "conferences"."id" = $1 LIMIT 1  [["id", 2]]
  Link Exists (0.4ms)  SELECT  1 AS one FROM "links" WHERE "links"."linkable_id" = $1 AND "links"."linkable_type" = $2 LIMIT 1  [["linkable_id", 443], ["linkable_type", "Event"]]
  EventAttachment Exists (0.3ms)  SELECT  1 AS one FROM "event_attachments" WHERE "event_attachments"."event_id" = $1 LIMIT 1  [["event_id", 443]]
  Rendered events/show.html.haml within layouts/application (25.0ms)
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  Conference Load (0.7ms)  SELECT "conferences".* FROM "conferences"  ORDER BY created_at DESC
   (0.4ms)  SELECT COUNT(*) FROM "conferences"
  CACHE (0.0ms)  SELECT COUNT(*) FROM "conferences"
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 5]]
  Person Load (0.4ms)  SELECT  "people".* FROM "people" WHERE "people"."user_id" = $1 LIMIT 1  [["user_id", 5]]
  Rendered shared/_flash.html.haml (0.1ms)
Completed 200 OK in 113ms (Views: 98.4ms | ActiveRecord: 6.1ms)
cc @almereyda This issue was reported by @viktoriya.kulikova on #203 (closed)
Edited  by Gualter