Displaying 1 result from an estimated 1 matches for "read_cookie".
2006 Oct 08
3
Call an helper method from a controller
Hello, this have been debated few times in the forum but I didn''t found
a satisfying solution : my problem is very simple, I have few methods
dealing with cookies that are intended to be used in controllers and
views.
Let say I have the read_cookie() method. Because it deals with the
response object putting this method in the /lib directory doesn''t fit
nicely because I would need to pass the object method to each call to
read_cookie, as in read_cookie(response)
If I put read_cookie in a application helper, I can''t use it...