Closed alexandrule closed 3 years ago
It seems that your erb file contains something like <%= Rails.xxx %>
or <%= Rails::Xxx %>
, isn't it?
Please try to add ::
before Rails
, like this: <%= ::Rails.xxx %>
, <%= ::Rails::Xxx %>
.
@minimum2scp Thank you for support.
Was the problem with <%= Rails.env.production? %>
I solved it by changing to <%= fetch(:rails_env) == 'production' %>
<%= ::Rails.env.production? %>
doesn't work.
Hello. Trying to understand where is the issue, when I'm running:
I'm getting the following error:
Gemfile
Capfile
Interesting that this works in rails 4.2 and ruby 2.3.3.