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
Doug ChasmanDoug Chasman 

ActiveSalesforce 1.1.4 has been released!

activesalesforce-1.1.4.gem contains:

- supports the latest version of rails and rubygems
- select count(*) now uses 9.0 api support for native SOQL select count()
- clientId support
- SID authentication connection management bug fixes

NOTE: In your environment.rb you will need to change:

require_gem 'activesalesforce'


to:

require 'activesalesforce'

Message Edited by Doug Chasman on 03-28-2007 01:43 PM

John SiedlickiJohn Siedlicki

Doug,

There appears to be an issue with ASF 1.1.4.  After I install the gem I get the following error in my rails app with no changes other than updating to ASF 1.1.4.  I then altered my environment.rb as you noted and I still get the same error.  This app authenticates using the database.yml file and not SID authentication.

UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService

Thanks,

John Siedlicki

John SiedlickiJohn Siedlicki

Doug,

Here is a simple rails app to demonstrate the error.  Follow the steps below at a shell or command prompt.  This assumes you have altered your environment.rb file as you noted and have properly setup your database.yml file to access SFDC.

  1. rails test
  2. cd test
  3. ruby script/generate model Lead
  4. ruby script/generate controller Test run
  5. Add this code to the run method of the Test controller
      who = Lead.find(:first)
      render :text => "Name = #{who.name}"
  6. ruby script/server

Poke at the app with your browser to see the error thrown.

http://localhost:3000/test/run

ActiveSalesforce::ASFError in TestController#run
UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService

Thanks,
John Siedlicki