2
私はそのようないくつかのことを行う必要があります:私はサインアップリンクをクリックしてください場合は、私が得る、Rails 3.1、deviseコントローラ用のリソースを認可しないようにするには?
class ApplicationController < ActionController::Base
authorize_resource :unless => :devise_controller?
...
をしかし:
NameError in Devise::SessionsController#new
uninitialized constant Session
どのように私はすべてのアクションのためauthorize_resourceをスキップすることができますdevise_controllerの?またはdevise_controllerを継承するクラス?
除外するコントローラーが多数ある場合はどうなりますか?
任意の助けがより理解されるであろう、私は、インスタンスを渡すために、私は
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :authenticate_user!
# Don't let controllers get away with
# any monkey business
check_authorization :unless => :devise_controller?
end
行う