I’ve noticed that the debug information is on the production web site
though the app/views/layouts/application.html.erb file has the line “<%=
debug(params) if Rails.env.development? %>”. This SHOULD suppress the
debug information on each page in the production environment, but it
doesn’t seem to be working. (The technical tabs on both web sites
the links to the source code.)
Commenting out the “<%= debug(params) if Rails.env.development? %>” line
does remove the debug information, but I need to retain it in the
development environment. Thus, I believe that my production environment
being mistaken for the development environment.
- How do I confirm whether I’m in the development or production
environment? My assumptions don’t seem to be holding up.
- What is the mechanism that specifies the development or production