On 02 Oct 2009, at 11:45, Ruby on Rails wrote:
Thanks , Peter
But i am getting following error , am i doing wrong ?
`const_missing’: uninitialized constant CGI::Session::MemCacheStore
You are using Rails 2.0.2, which might not have had the MemCacheStore implemented yet. That’s exactly what the error message says. Just use ActiveRecordStore instead (make sure you generate your sessions migration with “rake db:sessions:create”):
config.action_controller.session_store = :active_record_store
Also, beware if you upgrade to Rails 2.3, the session management has changed significantly, per the release notes:
CGI::Session::CookieStore has been replaced by
CGI::Session::MemCacheStore has been replaced by
CGI::Session::ActiveRecordStore has been replaced by
You’ll need to patch the plugin probably if you want to use it with Rails 2.3.
It does seem that you are missing some basic but fundamental insight in the framework you’re using, might be a good idea to start reading some books, watch some screencasts and read up on some blogs and even plugin code to get yourself familiar with what’s going on. It’s generally just a good idea to not blindly use a plugin, but look into the API and code itself to at least grasp what’s going on in this rapidly evolving Rails world. Don’t count on others to fix issues for you, because they might have moved on since then and not maintain the plugin anymore when a new version is released that breaks it.
Peter De Berdt