The SessionsHelper option makes the methods available from ApplicationController, yes, but it makes them available in any view, as well. That seems to me to be potentially too broad of a scope. Also, putting code which implements, say, a before_filter which conditionally redirects (as the railstutorial.org example does) in a module which more commonly contains view helpers seems surprising.
I'm not sure if my concerns are well-founded or if I'm "thinking too much" about this.
-Craig
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment