session.rb

Path: lib/camping/session.rb
Last Update: Mon Oct 06 15:42:40 -0400 2008

About camping/session.rb

This file contains two modules which supply basic sessioning to your Camping app. Again, we‘re dealing with a pretty little bit of code: approx. 60 lines.

  • Camping::Models::Session is a module which adds a single sessions table to your database.
  • Camping::Session is a module which you will mix into your application (or into specific controllers which require sessions) to supply a @state variable you can use in controllers and views.

For a basic tutorial, see the *Getting Started* section of the Camping::Session module.

Required files

camping  

[Validate]