2011-05-09 50 views

回答

2
a = SugarCRM::Account.new 
a.name = 'New Account' 
# make sure it's valid 
a.valid? 
# show errors, if there are any 
a.errors 
# once the account has no more errors, save it 
a.save! 

您可以在這裏找到更多的信息:

如果您有任何其他疑問,請隨時問他們在GitHub上(我們會看到他們更快):https://github.com/chicks/sugarcrm/issues