TaiwanTimmy
TaiwanTimmy

Reputation: 187

Using rails console

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

Upvotes: 0

Views: 233

Answers (1)

Volte
Volte

Reputation: 1905

>> (and similar things) represent the prompt that you should see already on the screen for you. It's essentially the console saying "Go ahead, type something"

Try to 'mentally' strip stuff like that off from the beginning, including spaces. This would mean that the 'command' you're looking to execute is really,

Salesforce::Contact.first

Hope this helps.

Upvotes: 1

Related Questions