LoginSignup
0
5

More than 5 years have passed since last update.

RailsのDEVISEでsign_up後の遷移先を変更する。

Posted at

sign_up後の遷移先をログイン画面に変更する

companies/registrations_controller.rb
class Companies::RegistrationsController < Devise::RegistrationsController

  def after_sign_up_path_for(resource)
    new_company_session_path
  end

  def after_inactive_sign_up_path_for(resource)
    new_company_session_path
  end

end
0
5
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
5