environment.rb:7: uninitialized constant Rails::Initializer(NameError)
from /usr/lib/ruby/gems/1.8/gems/railties-3.1.0/lib/rails/application.rb:78:in`require_environment!'
from /usr/lib/ruby/gems/1.8/gems/railties-3.1.0/lib/rails/commands.rb:39
from script/rails:6:in `require'
from script/rails:6
I have mad the instructions required however it is required to edit the environment.rb Here is my current version:
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Newsletter::Application.initialize!
Rails::Initializer.run do|config|
config.gem "asf-soap-adapter",:lib =>"activerecord-activesalesforce-adapter"
config.gem "asf-soap-adapter",:lib =>'asf-soap-adapter'
config.database_configuration_file =File.join(RAILS_ROOT,'config','salesforce.yml')
config.time_zone ='UTC'
end