Fix internal server error, if-else statement on index.haml