LoginSignup
1
2

More than 5 years have passed since last update.

[Rails] Deviseでユーザ情報更新後に元の画面に戻る

Last updated at Posted at 2016-07-15

その他のリダイレクト処理でもroot_pathを参照するような場合にそれより前にuser_root_pathを参照するので、それを上書きする

controllers/application_controller.rb
class ApplicationController < ActionController::Base
  def user_root_path
    edit_user_registration_path
  end
end
1
2
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
1
2