RubyGems Navigation menu

cookie_tracker 1.0.0

The cookie_tracker 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.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

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

Runtime Dependencies (1):

rails >= 0

Development Dependencies (1):

sqlite3 >= 0

Owners:

Authors:

  • Dan Knox

SHA 256 checksum:

3c5e5ff8c947e8b53f5d334a559b65e894cc78ac431c2efa8924f70e833c73d7

Total downloads 8,597

For this version 3,757

Licenses:

N/A

Required Ruby Version: None

Links: