我目前正在嘗試設計在我的網站上設置登錄名和密碼我目前正在本地運行它當我嘗試註冊我的網站時,這是錯誤信息,我得到「沒有路由匹配[POST]‘/用戶/ sign_up’設計錯誤沒有路線匹配[POST]「/ users/sign_up
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
user_password POST /users/password(.:format) devise/passwords#create
new_user_password GET /users/password/new(.:format) devise/passwords#new
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
PATCH /users/password(.:format) devise/passwords#update
PUT /users/password(.:format) devise/passwords#update
cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel
user_registration POST /users(.:format) devise/registrations#create
new_user_registration GET /users/sign_up(.:format) devise/registrations#new
edit_user_registration GET /users/edit(.:format) devise/registrations#edit
PATCH /users(.:format) devise/registrations#update
PUT /users(.:format) devise/registrations#update
DELETE /users(.:format) devise/registrations#destroy
root GET / pages#home
about GET /about(.:format) pages#about
這些都是我的路線
Rails.application.routes.draw do
devise_for :users
root "pages#home"
get "about" => "pages#about"
end
請讓我們知道您視圖中的代碼 – Mavis