On 12-Jan-06, at 2:56 AM, Stefan Kaes wrote:
I suggest to place language information on the request object. Add
an attr_accessor to class AbstractRequest
class ActionController::AbstractRequest
attr_accessor :language
end
My preference has always been to add an "attributes" method to the
Jean-Christophe Michel wrote:
Hi all,
My problem is to try to call a method once per page request.
(Context: I want to detect the current lang for localization, and this
has to be done on each request, so lang passed through uri can have
priority over session, browser prefs or default app lang).
Hi all,
My problem is to try to call a method once per page request.
(Context: I want to detect the current lang for localization, and this
has to be done on each request, so lang passed through uri can have
priority over session, browser prefs or default app lang).
The way I followed is to have