Instead of a helper, consider using a partial and `render :appointment, collection: @appointments`

That way we keep the template bits in the views directory, and then use helpers for branches in logic.