Your indentation looks like it might be the issue
- if @organisation.type == 'Company'
%p
%strong Number of Employees:
= @organisation.number_of_employees
- elsif @organisation.type == 'EducationalInstitution'
%p
%strong Number of Students
= @organisation.number_of_students
Bonus indenting quirk
The if/else statement to fail if commenting does not also adhere to the correct indentation.
e.g.
- if @organisation.type == 'Company'
%p
%strong Number of Employees:
= @organisation.number_of_employees
-# Institutional case
- elsif @organisation.type == 'EducationalInstitution'
%p
%strong Number of Students
= @organisation.number_of_students
will fail. Where
- if @organisation.type == 'Company'
%p
%strong Number of Employees:
= @organisation.number_of_employees
- elsif @organisation.type == 'EducationalInstitution'
-# Institutional case
%p
%strong Number of Students
= @organisation.number_of_students
will is correct.