In the Haml tutorial has this sample:
Welcome to our site!
<%= print_information %>
%h2 Welcome to our site!
= render :partial => “sidebar”
I want to convert a similar block that includes a conditional, but can’t
find/google how to do it. Is it possible?
<% if ENV[“RACK_ENV”] == “production” %>
<%= render :partial => “ga” %>
Any help would be much appreciated.