2
레일 3.1에 간단한 우편물을 설치하려고합니다.레일즈 메일러 "정의되지 않은 메소드"오류.
I가 내가 해결할 수없는 내 우편물에 다음 코드 ...
내가 가진 내 컨트롤러에 다음class Notify < ActionMailer::Base
default :from => "[email protected]"
def send
@email = email
@ip = ip
mail(:to => "[email protected]", :subject => "#{email} just signed up")
end
end
... 어떤 이유
Notify.send(params[:email], ip).deliver
때 라인은 ... 내 컨트롤러 나는 다음과 같은 오류가 호출됩니다
undefined method `*string I passed in*' for Notify:Class
모든 아이디어를 내가 잘못 여기서 뭐하는거야?
고맙습니다! 그것은 그것을 고쳤다. – Jon
정말요?! 댕 .. 꽤 시간 절약 ... 감사 Unixmonkey Logged – sircapsalot