I am working with the Salesforce Ruby API which has a pretty good, but slightly dated set up guide. After installing the right gems it says to enter 'script/console' into the command line, and then enter '>> Salesforce::Contact.first' which should respond with a user id.
I have read other's post saying that script/console is no longer being used and to use rails console instead. That works fine, but when I enter '>> Salesforce::Contact.first' it complains that the syntax is wrong.
I also tried removing the >> from the front and it resulted in it saying "The filename, directory name, or volume label syntax is incorrect"
I there some other command besides '>> Salesforce::Contact.first' that I should be using?
Thanks
require 'Salesforce'to load the API into the console.>>in front of all their commands, I'm guessing it is supposed to represent the prompt in the Rails console, so it should not be entered. The error message you wrote makes me think you tried to execute that line from the command line, but not in the Rails console itself. Make sure you're in the console first - make sure you've donerails consolefirst, and thenSalesforce::Contact.firstsecond.cdinto it.