mardi 20 juin 2017

Why does IF statement fail when OR || is used?

My Ruby if statement fails when the or operator is used.

<% if @body_id == 'plants' || 'trees' %>
   <meta name="robots" content="noindex, nofollow">
<% end %>

Aucun commentaire:

Enregistrer un commentaire