RubyGems Navigation menu

cookie_tracker 1.2.0

The cookie_tracker easily synchronizes settings stored in cookies with instance variables of the same name available for use in controllers and views. This gem allows you to declare a hash of parameters along with default values that you wish to be loaded/stored in the user's cookies during each page load. Each parameter will be loaded into it's own instance variable of the same name for easy access in controllers and views. If the parameter is passed in the params[] hash, the new value will automatically be stored in the correct cookie and replace the old or default value. This makes it easy to track various options that a user can select on a page, such as items per page, search queries, and custom display settings. If a user clicks off to another page on your site, their settings will be remembered when they return. You can declare the default cookie lifetime options in an initializer or override them at runtime. If you prefer to use the session store over the cookie jar, there is a method for that as well. You can override the default cookie options by creating an initializer. Visit the github page https://github.com/DanKnox/CookieTracker

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 1.2.0 - December 18, 2011 (16.0 KB)
  2. 1.0.0 - December 17, 2011 (13.5 KB)

Runtime 依赖 (1):

rails >= 0

Development 依赖 (2):

rake >= 0
sqlite3 >= 0

业主:

作者:

  • Dan Knox

SHA 256 校验和:

aadb298c46f98bd7a0173f1aa26b0cd1147cc1a497b66c321d0ac33fb910db7a

下载总量 8,591

这个版本 4,836

许可:

需要的 Ruby 版本:

链接: