Hi, I'm wondering if there is a simple solution to call a method once per page request.
I tried to place my call in a before_filter in ApplicationController but it'd called a second time if I use render_component from a view. Seems to me that a hook should be added in Dispatcher#prepare_application. Context: working on i18n, I'm trying to check lang either from uri, or session, or against default lang or browser prefs. This is close to routing, but I'd prefer not to interfere with routing, would be simpler. -- Jean-Christophe Michel _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core