Skip to content

Instantly share code, notes, and snippets.

@brettcave

brettcave/gist:6184116

Last active Dec 20, 2015
Embed
What would you like to do?
ERB conditional
Environment: <%= @environment %>
<% if @environment == "PROD" %>
noThen {}
<% end %>
<% if @environment == "PROD" then %>
withThen {}
<% end %>
<% if @environment == "PROD" %>
config {}
<% end %>
------ Result ----------
Environment: BUILD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.