And I’ve gotten as far as the instructions that read … “First,
above the Rails::Initializer.run block put …” but I don’t have any
“Rails::Initializer.run” block.
Am I missing something? I’m trying to get something running again that
I didn’t actually build. I can’t tell whether the original author was
leaving things out or what.
And I’ve gotten as far as the instructions that read … “First,
above the Rails::Initializer.run block put …” but I don’t have any
“Rails::Initializer.run” block.
Then you’re probably not looking in the right file, because rails
wouldn’t run without it.
environment.rb is the file you’re looking for. This is where the global
settings of your Rails app go.
“class Rails::Configuration … end” goes before the
Rails::Initializer.run
block. The lines starting with “config” go inside the
Rails::Initializer.run block.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.