I've looked at several stackoverflow questions that seem similar to this one, as well as all the issues in the contact_us github repository, but the answers provided there don't solve this issue. I'll go over the code I have and hopefully I can get some help. :)
I have setup my ActionMailer, correctly to my best knowledge, using Mailgun and their own example code as follows:
I'm using Formtastic, as opposed to simple_form, and have specified so in contact_us.rb, in place of nil as is stated in the contact_us installation instructions.
I have also (I assume correctly) placed my Mailgun mailer username in the 'config.mailer_from =' and my desired target address in 'config.mailer_to =' places in contact_us.rb. (both of which are omitted due to security reasons)
The form renders properly on the page, but when submitting, I get the aforementioned error.
Is this a routing issue?? Not really sure where to begin. PLZ HALP!!!
The controller is ContactUs::ContactsController not just ContactsController I'm not sure why your submitting to the wrong controller, but this works for me.
I've looked at several stackoverflow questions that seem similar to this one, as well as all the issues in the contact_us github repository, but the answers provided there don't solve this issue. I'll go over the code I have and hopefully I can get some help. :)
I have setup my ActionMailer, correctly to my best knowledge, using Mailgun and their own example code as follows:
of course, I placed my own domain, username and password from Mailgun in place of the dummy attributes.
The app/mailer/contact_us/new_formtastic.html.erb was generated during 'rake exec contact_us:install' and is as follows:
I'm using Formtastic, as opposed to simple_form, and have specified so in contact_us.rb, in place of nil as is stated in the contact_us installation instructions.
I have also (I assume correctly) placed my Mailgun mailer username in the 'config.mailer_from =' and my desired target address in 'config.mailer_to =' places in contact_us.rb. (both of which are omitted due to security reasons)
The form renders properly on the page, but when submitting, I get the aforementioned error.
Is this a routing issue?? Not really sure where to begin. PLZ HALP!!!