2010-09-08 35 views

回答

11

選項:

  • 在UsersController

    使用skip_before_filter

    skip_before_filter :login_required, :only => :show

  • 單獨運用的before_filter到每個控制器,如果你的特殊情況下成長。

+1

這有效,但不知何故感覺不對:驗證邏輯遍佈整個應用程序。 – nimrodm 2013-09-22 14:50:05

相關問題