First, above the Rails::Initializer.run block put ...

I'm puzzling through these instructions:

http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/

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.

I'm puzzling through these instructions:

http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/

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.

Fred

So if ...

grep -ir "Rails::Initializer" ./*

turns up nothing, you think I didn't get all the files I need?

Ignore this for now. Or don't. I have a basic app, the output of
"rails myapp" and I can see where it does have those lines:

./myapp/config/boot.rb: defined? Rails::Initializer
./myapp/config/boot.rb: Rails::Initializer.run(:set_load_path)
./myapp/config/environment.rb:Rails::Initializer.run do |config|

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.

Amanda wrote: