search for: countries_for_select

Displaying 1 result from an estimated 1 matches for "countries_for_select".

2008 Mar 01
2
How to cache data in a plugin
Hi, I''m using CountryCodes to get countries list for select box. It provides self.countries_for_select(*args) method exactly for this purpose. I''m using it in only one place in my view. So I was thinking about caching this data somehow, so it won''t have to be recreated every time the page is loaded. The problem is that the plugin initializes its main @countries variable in init.rb...