function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
humanoydhumanoyd 

Error integrating with rails

I have followed the instructions in the http://boards.developerforce.com/t5/Perl-PHP-Python-Ruby-Development/getting-error-when-trying-to-use-activesalesforce-adapter-on/td-p/231471

 

 
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



Best Answer chosen by Admin (Salesforce Developers) 
apexsutherlandapexsutherland

humanoyd, the Salesforce + Ruby community has a new gem for connecting to the Salesforce API that should be much more reliable than the old ActiveSalesforce gem, and should be much more stable on Rails 3.x than ActiveSalesforce is:

 

https://github.com/heroku/databasedotcom

 

For more support and feedback, please join our Google Group:

 

http://groups.google.com/group/activesalesforce/

All Answers

apexsutherlandapexsutherland

humanoyd, the Salesforce + Ruby community has a new gem for connecting to the Salesforce API that should be much more reliable than the old ActiveSalesforce gem, and should be much more stable on Rails 3.x than ActiveSalesforce is:

 

https://github.com/heroku/databasedotcom

 

For more support and feedback, please join our Google Group:

 

http://groups.google.com/group/activesalesforce/

This was selected as the best answer
humanoydhumanoyd

Thank you for the update, however Admins shall highlight this in the integration documentation, I've been spinning around myself for so long trying to get asf to work

 

I will try to get it to work