1
私はhttps://github.com/JDutil/contact_usを使用してアプリケーションで連絡先の使用ページを作成しましたが、投稿を押すたびに電子メールが送信されたと表示されますが、そうではありません。誰が何をすべきか知っていますか?私はどのようにして私たちに連絡先フォームを作成しますか?
私はこの
# Use this hook to configure contact mailer.
ContactUs.setup do |config|
# ==> Mailer Configuration
# Configure the e-mail address which email notifications should be sent from. If emails must be sent from a verified email address you may set it here.
# Example:
# config.mailer_from = "[email protected]"
config.mailer_from = "[email protected]"
# Configure the e-mail address which should receive the contact form email notifications.
config.mailer_to = "[email protected]"
# ==> Form Configuration
# Configure the form to ask for the users name.
config.require_name = true
# Configure the form to ask for a subject.
config.require_subject = true
# Configure the form gem to use.
# Example:
# config.form_gem = 'formtastic'
config.form_gem = 'simple_form_for'
# Configure the redirect URL after a successful submission
config.success_redirect = '/'
# Configure the parent action mailer
# Example:
# config.parent_mailer = "ActionMailer::Base"
end
私はdevelopment.rbにこのコードを使用して変更それに応じて私はまだそれを電子メールを送信することはできません。 –