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
pankspanks 

not able to run ruby project and not able to run basic command like Salesforce::Contact.first

Hi all,

 

I am new to Froce.com and I have been trying to setup RubyonRails environment and everythign looks good to me on that front. When I try to run a basic command like Salesforce::Contact.first it send out messages like below. Please advice

 

C:\software\Ruby192\bin\test>ruby script/console
Loading development environment (Rails 2.3.8)
>> Salesforce::Contact.first
RuntimeError: Incorrect user name / password []
   

I am trying to figure out how do we give username password in database.yml file ??? it should be in < > or something???

Is there any other place where we need to provide this username password??

pankspanks

Can a Trial version user access the data from Salesforce????

KunjanKunjan

Your database.yml file must have following section in below format:

 

salesforce-default-realm:
    adapter: activesalesforce
    url: https://www.salesforce.com
    username: salesforce username
    password: password + security token
    api_version: 20.0

 

Hope it will help.

 

Regards,

Kunjan