0
나는 레일에서 내 웹 사이트의 문의 양식을 작성 중입니다. 이메일을 보내고 주제가있는 이메일을 수신했습니다. 하지만 시체는 비어 있습니다. 여기에 코드 :레일의 문의 양식 - 본문이없는 이메일
contact_mailer.rb
class ContactMailer < ActionMailer::Base
default from: "[email protected]"
default to: "[email protected]"
def new_message(contact_message)
@contact_message = contact_message
mail(subject: "Send it from Hybrid Tech Website - #{@contact_message.subject} ")
end
end
문제는 여기에 무엇을보기
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head>
<body>
<h1>Name: <%= @contact_message.name %></h1>
<h1>E-Mail: <%= @contact_message.email %></h1>
<p>
Message: <%= @contact_message.body %><br/>
</p>
</body>
</html>
이 사람이 있습니까 contact_email.html.erb 및 아이디어.
감사합니다 !!!
대단히 감사합니다. D – Jean