Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6693243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:57:36+00:00 2026-05-26T05:57:36+00:00

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

  • 0
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’m getting the preceding error, I’m trying to integrate salesforce with a rails app following the PDF here: http://blogs.developerforce.com/developer-relations/2011/02/a-brief-history-of-ruby-rails-with-the-forcecom-platform.html

I have made 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 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:57:36+00:00Added an answer on May 26, 2026 at 5:57 am

    I used the new Gem ‘databasedotcom’ for the same purpose which works perfectly
    http://richardvanhook.github.com/databasedotcom-guide/#create_a_databasecom_account

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

environment/cucumber.rb: ... # gem dependencies config.gem 'cucumber-rails', :lib => false, :version => '>=0.3.0' unless
Possible Duplicate: Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) Hey I have seen this issue a lot
I have turned ActiveRecord off in my Rails app in the environment config: Rails::Initializer.run
I am migrating an existing application from Rails 2 to Rails 3. In the
Environment I'm working on a C++ application that uses SQL Native Client 9.0 to
Environment: Rails 2.2.2, Oracle 10g Most of the columns declared date in my ActiveRecord
I am trying to run the following ruby code from IRB but am unable
On my ubuntu box, irb (ruby) gives a NameError when I try to use
I am trying to integrate spree into a fresh install of a rails application.
I'm in the process of refactoring some logic built into a Rails application into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.