I want to mass email contacts and I have a nice HTML template designed and my OWN custom plain text part content. When I send a test from the email template editing area or a test mass email, Salesforce ignores the custom plain text part and builds the plain text part from the HTML content. According to the help and training section it should use MY custom text, not build it from the HTML area. Why even provide the ability to have your own plain text?
Is this a bug? Or am I doing something wrong?
matte - firstname.lastname@example.org
NoMethodError: undefined method `connection=' ... rails app with activesalesforce (incl. unit tests)
I am a newbie to activesalesforce and I'm trying to get it running. I ran into the above error when I created a simple rails app and added a scaffold for 'Account' using:
script/generate scaffold account
so, I tried to run the unit tests and got the same error (Error details after env)
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
actionmailer (2.2.2, 220.127.116.1116, 18.104.22.16829, 2.0.2, 1.3.6, 1.3.3)
actionpack (2.2.2, 22.214.171.12416, 126.96.36.19929, 2.0.2, 1.13.6, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activerecord (2.2.2, 188.8.131.5216, 184.108.40.20629, 2.0.2, 1.15.6, 1.15.3)
activeresource (2.2.2, 220.127.116.1116, 18.104.22.16829, 2.0.2)
activesupport (2.2.2, 22.214.171.12416, 126.96.36.19929, 2.0.2, 1.4.4, 1.4.2)
I've tried with and w/o URLs specified (https://test.salesforce.com doesn't work for me).
The log shows
Starting test 'AsfUnitTestsBasicTest.test_add_notes_to_contact'
Created one-to-one relationship 'master_record' from Contact to Contact using master_record_id
Creating ActiveRecord stub for the referenced entity 'Account'
The exception is:
NoMethodError: undefined method `connection=' for #<Class:0x19b0a90>
Note that the above is essentially the same when I try to access the accounts listing from my rails app, with the expected variations in the backtrace
With the rails app, if I generate the model class for XXXX (using script/generate model XXXX) for the object referred to in the log statement "Creating ActiveRecord stub for the referenced entity 'XXXXX'", the code will proceed further and fail identically but refer to another entity. After enough model classes are generated (to satisfy all associations, I guess), the code does work. But I realized after more research that ASF should handle all that for me. Somehow it doesn't.
I know I'm missing something, but don't know what. Any help is greatly appreciated.
Message Edited by vijayn on 12-01-2008 03:20 PM