On 02 Oct 2009, at 11:45, Ruby on Rails wrote: > Thanks , Peter > But i am getting following error , am i doing wrong ? > > C:/I2/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/ > active_support/dependencies.rb:478:in > `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 byActionController::Session::CookieStore. CGI::Session::MemCacheStore has been replaced byActionController::Session::MemCacheStore. CGI::Session::ActiveRecordStore has been replaced byActiveRecord::SessionStore. 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. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

