Sorry, there is no Rails 3 for SalesForce yet. It even says so in the link you provided. “This article assumes Rails 2.3 development as it was the most current during the toolkit’s development. Rails 3 offers new data functionality
and integration into REST APIs and will be covered in a future article.”
You have two options:
1.) Use Rails 2.3.* and wait for an official Rails 3 toolkit to be launched by SalesForce.
2.) Fix the errors you are getting yourself to make the Rails 2.3.* SalesForce toolkit work on Rails 3.
Rails console is opening correctly but when i trid to run my project
it is giving following error.
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/lib/
active_record/connection_adapters/abstract/connection_specification.rb:
76:in `rescue in rescue in establish_connection': Please install the
activesalesforce adapter: `gem install activerecord-activesalesforce-
adapter` (no such file to load -- rforce) (RuntimeError)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/
lib/active_record/connection_adapters/abstract/
connection_specification.rb:73:in `rescue in establish_connection'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/
lib/active_record/connection_adapters/abstract/
connection_specification.rb:68:in `establish_connection'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-2.3.8/
lib/active_record/connection_adapters/abstract/
connection_specification.rb:60:in `establish_connection'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/asf-soap-
adapter-1.3.1/lib/salesforce/sf_base.rb:61:in `<class:SfBase>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/asf-soap-
adapter-1.3.1/lib/salesforce/sf_base.rb:30:in `<module:Salesforce>'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/asf-soap-
adapter-1.3.1/lib/salesforce/sf_base.rb:21:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/
lib/active_support/dependencies.rb:156:in `block in require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/
lib/active_support/dependencies.rb:521:in `new_constants_in'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/
lib/active_support/dependencies.rb:156:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/asf-soap-
adapter-1.3.1/lib/asf-soap-adapter.rb:4:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/
lib/active_support/dependencies.rb:156:in `block in require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/
lib/active_support/dependencies.rb:521:in `new_constants_in'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/
lib/active_support/dependencies.rb:156:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/rails/
gem_dependency.rb:215:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/
initializer.rb:307:in `block in load_gems'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/
initializer.rb:307:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/
initializer.rb:307:in `load_gems'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/
initializer.rb:169:in `process'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/
initializer.rb:113:in `run'
from C:/Documents and Settings/Parakh Technologies/sparrow
console/salesforceone/config/environment.rb:9:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/
lib/active_support/dependencies.rb:156:in `block in require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/
lib/active_support/dependencies.rb:521:in `new_constants_in'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/
lib/active_support/dependencies.rb:156:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rails-2.3.8/lib/
commands/server.rb:84:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/server:3:in `<main>'
Please reply me if u know anything about this.
Thank you
I installed activerecord-activesalesforce-adapter gem but, it is giving same error. It is working fine with rails console. But when i am trying to run, it is giving problem