You need to sign in to do that
Don't have an account?
Jim Zhan
ActiveSalesforce doesn't work
Ruby 1.8.5-p12
Rails 1.2.2
ActiveSalesforce 1.1.0
# environment.rb
Rails::Initializer.run do |config|
# Add Salesforce support into ActiveRecord
require_gem 'activesalesforce'
end
# database.yaml
adapter: activesalesforce
url: https://test.salesforce.com
username: <username>
password: <password>
Then I got these errors:
Code:
Rails 1.2.2
ActiveSalesforce 1.1.0
# environment.rb
Rails::Initializer.run do |config|
# Add Salesforce support into ActiveRecord
require_gem 'activesalesforce'
end
# database.yaml
adapter: activesalesforce
url: https://test.salesforce.com
username: <username>
password: <password>
Then I got these errors:
Code:
=> Booting WEBrick... c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:263:in `load_missing_constant': uninitialized constant ActiveRecord::ConnectionAdapters::Column (NameError) from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:452:in `const_missing' from c:/ruby/lib/ruby/gems/1.8/gems/activesalesforce-1.1.0/lib/column_definition.rb:32 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:495:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:342:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:495:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/activesalesforce-1.1.0/lib/asf_adapter.rb:25 ... 30 levels... from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/commands/server.rb:39 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from server:3
Code:
with
Code: then I got these:
Code:
seems that Rails didn't get the activesalesforce adatper.
Working on a fix now.
http://weblog.rubyonrails.org/2007/2/6/in-case-you-re-having-trouble-installing-gems
Did you happen to use the gem method instead of require_gem in your config files/source code in an attempt to remove the depre4cation warnings?
Code:
with gem, I got these:
Code:
Has this been resolved? We're having the same issue now.
Thanks.