Code to detect what environment the page is running on, and act accordingly:
<%= debug(params) if Rails.env.development? %>
In the console:
> Rails.env
Will print the environment you are running in: “production”, “test” or “development”
Code to detect what environment the page is running on, and act accordingly:
<%= debug(params) if Rails.env.development? %>
In the console:
> Rails.env
Will print the environment you are running in: “production”, “test” or “development”