0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

deviseでsign up しようとすると自動でroot_pathにリダイレクトしてしまう

0
Posted at

結論

ログイン時は新規登録とログインのリンクを表示しないように設定する。
明らかにわかることもボーッと同じことを考えていると抜け出せなくなるのでリフレッシュするか人に話すことが大切。

現象

deviseでsign up しようとすると自動でroot_pathにリダイレクトしてしまっていました。
なぜかデータベースに保存されていたものを削除したら新規登録ページに行けました。

rails sを立ち上げているターミナルを観察すると、
Redirected to http://localhost:3000/
という文字がありました。

実際新規登録をクリックしたときに一瞬URIが表示されているのが見えていました。

二重でログインできないようになっていると考えられる。当たり前。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?