diff --git a/lib/initfest/views/public/home/_event_type.slim b/lib/initfest/views/public/home/_event_type.slim index 8c51604..0b443b7 100644 --- a/lib/initfest/views/public/home/_event_type.slim +++ b/lib/initfest/views/public/home/_event_type.slim @@ -1 +1 @@ -=> link_to t('views.welcome.submit_event', event_type: event_type.name.mb_chars.downcase), new_event_path(type: event_type.id), class: 'btn-link btn-link-large' +=> link_to t('views.welcome.submit_event', event_type: event_type.name.try(:mb_chars).try(:downcase)), new_event_path(type: event_type.id), class: 'btn-link btn-link-large'