railstutorial.org has a suggestion which strikes me as a little odd. Here:
http://ruby.railstutorial.org/chapters/sign-in-sign-out#code:sessions_helper_include
... it suggests this code:
class ApplicationController < ActionController::Base protect_from_forgery include SessionsHelper end
...making SessionsHelper available essentially everywhere. I understand that authentication/authorization is cross-cutting, but is this really the best place? Would functionality not strictly needed in views be better placed in ApplicationController or elsewhere?
Thoughts?
Thanks,
-Craig