The session storage is now done via the database, be sure to relaod your
author<jlsharps@mit.edu> <>
Fri, 31 Aug 2007 00:31:48 +0000 (20:31 -0400)
committer<jlsharps@mit.edu> <>
Fri, 31 Aug 2007 00:31:48 +0000 (20:31 -0400)
databases. It seems that the logout error was cured, in that if you reload the
database while logged in, you shouldn't get an error when returning to the
site. I don't know how the session plugin we're using will be working with the
new storage method.

app/views/site/index.rhtml
config/environment.rb
db/create.sql

index efbb37464de953ed289fd9122246800dd87f35de..f92fb98b10165434b8a832736e91ecf3f1cadeaa 100644 (file)
@@ -1,3 +1,4 @@
+<% %>
 <div id="voters" class="main-section">
   <div id="voters-content">
   <h2>Voters</h2>
index fcabdd87aa6279b6003532259625536ac62e3fb3..82c746617b7da09e2ca108fe147f9e934ca55afd 100644 (file)
@@ -28,7 +28,7 @@ Rails::Initializer.run do |config|
 
   # Use the database for sessions instead of the file system
   # (create the session table with 'rake db:sessions:create')
-  config.action_controller.session_store = :active_record_store
+  config.action_controller.session_store = :active_record_store
 
   # Use SQL instead of Active Record's schema dumper when creating the test database.
   # This is necessary if your schema can't be completely dumped by the schema dumper, 
index 7d5f405f5662b4fd30038b5f6d712efa0d1b0976..c28dd36c48e616c427b1ef8dcc3f8737c11d8288 100644 (file)
@@ -101,6 +101,19 @@ create table rankings (
  primary key (id)
 );
 
+# CREATE sessions TABLE
+######################################
+
+drop table if exists sessions;
+create table sessions (
+ id         int(11)      NOT NULL auto_increment,
+ sessid     varchar(255),
+ data       text,
+ updated_at datetime     DEFAULT  NULL,
+ primary    key (id),
+ index      session_index (sessid)
+);
+
 # CREATE users TABLE
 #####################################
 #DROP TABLE IF EXISTS `users`;

Benjamin Mako Hill || Want to submit a patch?