app/controllers/contact_us_controller.rb
# When a user submits the "Contact Us" form, send the email.
When a user submits the "Contact Us" form, send the email.
When a user submits the " Contact Us " form send the email .
def create
    ContactUsMailer.web_inquiry(
      params.permit(:name, :email, :category, :message, :zipcode)
    ).deliver_now
    flash[:notice] = "Thank you for the feedback.  "\
                     "Your submission has been successfully sent."
    redirect_back(fallback_location: main_app.root_path)
  end
def create ContactUsMailer . web_inquiry ( params . permit ( :name , :email , :category , :message , :zipcode ) ) . deliver_now flash [ :notice ] = "Thank you for the feedback.  " "Your submission has been successfully sent." redirect_back ( fallback_location : main_app . root_path ) end
When a user submits the "Contact Us" form, send the email.
When a user submits the " Contact Us " form send the email .