add ruby:if structure