2
나는 아주 실망스럽게되고있는 오류가 계속되고있다 - 나는 새로운 사용자에게 활성화 이메일을 보내는 메일 설정을 가지고있다. 코드 여기 no route matches {:controller => "activations", :action => "create"}
일치하는 경로가 없습니까?
것 :
# routes. I tried all of these individually.
match 'activations/create'
match 'activations/create/:activation_code' => 'activations#create', :as => :activate
match 'activate/:activation_code' => 'activations#create', :as => :activate
# controller. This is the line that refers to UserMailer, that then causes the error.
UserMailer.activation_instructions(@user).deliver
# UserMailer.rb
def activation_instructions(user)
@user = user
@account_activation_url = activate_url(user.perishable_token) # error raised here
mail(:to => "#{user.login} <#{user.email}>", :subject => "Registered")
end
나는 여기에 놓치고 무엇을
나는 오류가 계속?
표준 응답 시도 :'레이크 무슨 말 routes' 않습니다를? ;) – iain