我試圖通過單擊激活電子郵件鏈接添加註冊確認。電子郵件發送,但是當我點擊鏈接,它說該頁面不存在。部署在heroku上。 樣品確認鏈接:Ruby on Rails - 用戶電子郵件驗證頁面不存在
/account_activations/g_dTGV1CbHip7w3w76pqCQ/edit?email=utn49585%40disaq.com
它看起來像應用程序犯規承認這條道路。我檢查了,激活摘要(g_dTGV1CbHip7w3w76pqCQ)存儲在數據庫中。我不知道什麼會導致這樣的錯誤。
account_activation.html.erb:
Click the link below in order to activate your account
<%= edit_account_activation_url(@user.activation_token, email: @user.email)%>
account_activation.text.erb:
Click the link below in order to activate your account
<%= edit_account_activation_url(@user.activation_token, email: @user.email)%>
routes.rb中:
Rails.application.routes.draw do
root 'welcome#home'
get '/login', to: 'sessions#new'
post '/login', to: 'sessions#create'
delete '/logout', to: 'sessions#destroy'
resources :users
resources :account_activations, only: [:edit]
end
全github上: https://github.com/mateusz208345/Ror-My-App
你檢查日誌嗎? –
你確定你點擊的鏈接是最近發送的嗎? –
您的回購鏈接已損壞:(我看不到您的其他應用程序 – Gaston