Guest User

Untitled

a guest
Apr 22nd, 2018
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. Error:
  2. ==========================================
  3. ArgumentError in Admin/emailController#create
  4. wrong number of arguments (0 for 1)
  5.  
  6.  
  7. Mail Model Method:
  8. ==========================================
  9. def contact_company(params)
  10. @recipients = params[:addressed_to]
  11. @cc = params[:cc_to]
  12. @bcc = params[:bcc_to]
  13. @subject = params[:subject]
  14. @from = params[:from]
  15. @sent_on = Time.now
  16. @body = params
  17. @content_type = "text/html"
  18. end
  19.  
  20. Page params:
  21. ===========================================
  22. Request
  23.  
  24. Parameters:
  25.  
  26. {"commit"=>"Send Email(s)",
  27. "insert"=>"6",
  28. "id"=>"181138",
  29. "mce_editor_0_fontNameSelect"=>"",
  30. "mce_editor_0_fontSizeSelect"=>"0",
  31. "mce_editor_0_formatSelect"=>"",
  32. "email"=>{"custom_to"=>"adam@machinetools.com",
  33. "signature"=>"true",
  34. "logo"=>"89",
  35. "content_plain"=>"Date:\r\n\r\nInvoice #:\r\n\r\nTerms: Charged to Checking Account. No payment due.\r\n\r\nListing Fees (for Current Period) -\r\n\r\n# Machine Listings -\r\n# Highlight Listings ($0.50 ea) -\r\nWebsite Link:\r\n\r\nTotal Monthly Charge(s): $\r\n\r\nPrevious Balance: $ 0.00\r\nTotal Account Balance: $ 0.00\r\n\r\nBill To:\r\n\r\nHarvey Machine Tool Co.\r\n9722 E. 55th Place\r\nTulsa,
  36. OK 74146\r\n\r\n\r\nThank you for listing your machinery on MachineTools.com. View your account and history online when you login.\r\n\r\nPlease note: We require 30 days prior notice for cancellation of listings by either email,
  37. billing@machinetools.com,
  38. or fax at 815-717-7759.\r\n\r\n\r\nBest Regards,
  39. \t\t\t",
  40. "subject"=>"Monthly Statement from MachineTools.com (no payment due) ",
  41. "content_rich"=>"Date: <br /><br />Invoice #: <br /><br />Terms: Charged to Checking Account. No payment due.<br /><br />Listing Fees (for Current Period) - <br /><br /># Machine Listings - <br /># Highlight Listings ($0.50 ea) - <br />Website Link: <br /><br />Total Monthly Charge(s): $<br /><br />Previous Balance: $ 0.00<br />Total Account Balance: $ 0.00<br /><br />Bill To:<br /><br />Harvey Machine Tool Co.<br />9722 E. 55th Place<br />Tulsa,
  42. OK 74146<br /><br /><br />Thank you for listing your machinery on MachineTools.com. View your account and history online when you login.<br /><br />Please note: We require 30 days prior notice for cancellation of listings by either email,
  43. billing@machinetools.com,
  44. or fax at 815-717-7759. <br /><br /><br />Best Regards,
  45. ",
  46. "custom_cc"=>"adam@machinetools.com",
  47. "custom_bcc"=>"adam@machinetools.com"}}
Add Comment
Please, Sign In to add comment