Hello everyone,
I''m a noob to RoR, and have been trying to find an answer to a problem
I
am having.
The issue is that I would like to use ActiveRecord session store. I''ve
uncommented the line out of the environment.rb file that reads:
config.action_controller.session_store = :active_record_store
I''ve created the table for the session its structure is as follows:
CREATE TABLE `sessions` (
`id` int(11) NOT NULL auto_increment,
`session_id` varchar(255) default NULL,
`data` text,
`updated_at` datetime default NULL,
PRIMARY KEY (`id`),
KEY `sessions_session_id_index` (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
However, when I attempt to access the site I get the following message:
=================Application error
Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html
=================
I''m sure that there is something small that I''ve overlooked,
but I just
can''t seem to find out exactly what it is. Do I need to add anything to
my controllers to make this work?
It was my understanding that all that was needed to make it work was to
have the correct table structure, the line uncommented out in the
environment.rb file and the database.yml configured properly. I''ve
followed several tutorials on this but they are all basically the same.
I am currently doing development work on:
Windows XP
MySQL 5.0.X
Ruby 1.8.4
Rails 1.1.2
Any help or suggestions would be greatly appreciated.
Thanks,
John
--
Posted via http://www.ruby-forum.com/.