i created a custom staging environment in my rails app by adding new file config/environments/staging.rb, same as config/environments/development
created
config/environments/staging.rb
config/environments/development
I have put ENV['RAILS_ENV'] ||= 'custom_development' in boot.rb at the last. It worked.
I have tested
All Worked.