0
如果自定義表單域填充,如何發送電子郵件?Rails。當自定義表單域參數發送創建通知
def create
@act = Act.new(act_params)
respond_to do |format|
if @act.save
ModelMailer.new_act_notification(@act).deliver_later if customer_id == '617'
format.html { redirect_to @act, notice: 'Act was successfully created.' }
else
format.html { render action: "new" }
end
end
end