以下の内容はhttps://blog.willnet.in/entry/20110508/1304869397より取得しました。


deviseでログイン後で遷移するパスを変更するには

deviseでログイン後に遷移するパスは、デフォルトだと

  1. {deviseで指定したmodel名}_root_path
  2. root_path

の順番で探す。それ以外を指定したい場合は、ApplicationController で after_sign_in_path_for メソッ
ドをオーバライドする。

class ApplicationController < ActionController::Base
  def after_sign_in_path_for(resources)
    bookmark_path
  end
  # ...
end



以上の内容はhttps://blog.willnet.in/entry/20110508/1304869397より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14