こんにちは私はユーザー認証のためのクリアランスの宝石を使用しています。クリアランスgemリダイレクトの問題
これまでのところすべてが完璧でしたが、なぜ私のページのインデックスビューのルートルートを設定しても、クリアランスの宝石のsign_inページにリダイレクトされるのはなぜですか?
私はgithubのドキュメントを見てきました。私は間違って何かをしていますか?ここで
は私のroutes.rbをファイルには、次のようになります。
Rails.application.routes.draw do
resources :passwords, controller: "clearance/passwords", only:
[:create, :new]
resource :session, controller: "clearance/sessions", only: [:create]
resources :users, controller: "clearance/users", only: [:create] do
resource :password,
controller: "clearance/passwords",
only: [:create, :edit, :update]
end
get "/sign_in" => "clearance/sessions#new", as: "sign_in"
delete "/sign_out" => "clearance/sessions#destroy", as: "sign_out"
get "/sign_up" => "clearance/users#new", as: "sign_up"
root 'pages#index'
# For details on the DSL available within this file, see
http://guides.rubyonrails.org/routing.html
end
は端末の画面を共有します。そして、ブラウザからあなたの履歴を削除してください。 –