Display based on Environment
Rails.env.production? or Rails.env.development? or Rails.env.test?
See docs for further information.
<% if Rails.env.development? %>
<p>Dev Mode</p>
<% else %>
<p>Production or test mode</p>
<% end %>
Last updated
Was this helpful?