Report abuse

# Fun behavior with ERB 
# Note this down. This is important when using <%= %>
# precedence matters!

false and true ? 'yes' : 'no' %>
=> 'false'

(false and true) ? 'yes' : 'no'
=> 'no'


# For fun and profit, contrast this to the traditional method
false && true ? 'yes' : 'no'
=> 'no'