molten-trunk/molten5/app/controllers/cases_controller.rb
def submit_case_to_salesforce
    # don't submit if in 'no submit' mode
    return if AppSetting.config("Salesforce Form Submissions") == AppSetting::SALESFORCE_FORM_SUBMISSIONS[:no_submit]
    response = Net::HTTP.post_form(URI.parse('http://www.salesforce.com/servlet/servlet.WebToCase'),
                                  salesforce_params)
    logger.info("Response from Salesforce after submitting case: #{response}")
  end
# Submits the case to Salesforce.
Submits the case to Salesforce.
Submits the case to Salesforce .
def submit_case_to_salesforce
    return if AppSetting.config("Salesforce Form Submissions") == AppSetting::SALESFORCE_FORM_SUBMISSIONS[:no_submit]
    response = Net::HTTP.post_form(URI.parse('http://www.salesforce.com/servlet/servlet.WebToCase'),
                                  salesforce_params)
    logger.info("Response from Salesforce after submitting case: #{response}")
  end
def submit_case_to_salesforce return if AppSetting . config ( "Salesforce Form Submissions" ) == AppSetting :: SALESFORCE_FORM_SUBMISSIONS [ :no_submit ] response = Net :: HTTP . post_form ( URI . parse ( 'http://www.salesforce.com/servlet/servlet.WebToCase' ) , salesforce_params ) logger . info ( "Response from Salesforce after submitting case: #{response}" ) end
Submits the case to Salesforce.
Submits the case to Salesforce .
# don't submit if in 'no submit' mode