Ruby on Rails-Action mailer no as per desired?
问题 i have 2 models po and send po: has_many sends send: belongs_to po send po send_controller class SendsController < ApplicationController def new @send = Send.new end def create @send = Send.new(params[:send]) if @send.save Pomailer.registration_confirmation(@send).deliver flash[:success] = "Send mail" redirect_to capax_path else flash[:warning] = "mail not send" redirect_to capax_path end end pomailer class Pomailer < ActionMailer::Base default from: "from@example.com" def registration