Closed unigate closed 13 years ago
Can you paste your code? Also what version of ruby are you using?
The code
a = SugarCRM::Account.find_by_id( note.parent_id )
generates the error. I used Ruby 1.8.7-p334 but the error disappeared with Ruby 1.9.2-p180
Ahhh... you can just use:
a = SugarCRM::Account.find(note.parent_id)
Since find defaults to searching by id. I'll see about making this a little more clear.
BTW, 1.8.7 is supported... and find_by_id should work, but it's not the recommended path. I'll see about correcting that functionality.
I have upgraded to SugarCRM proffessional version 7.2.2. Since then, when I try to access the Accounts module using SugarCRM ruby gem, it shows an error as " undefined method `klass' for false:FalseClass (NoMethodError)". plz help me.
The error comes when I do an account search by id