Hello list, I am getting this error while trying to update to the beta gems almost since day one: % gem update -s http://gems.rubyonrails.com Upgrading installed gems... Updating Gem source index for: http://gems.rubyonrails.com Attempting remote upgrade of actionmailer Attempting remote installation of ''actionmailer'' ERROR: While executing gem ... (NoMethodError) undefined method `serialize'' for CGI::Session::ActiveRecordStore::Session:Class % Does anyone know how to fix this? Some further information: % ruby -v ruby 1.8.1 (2003-12-25) [sparc-solaris2.9] % gem -v 0.8.4 Kind regards, Dennis Oelkers
I''ve not experienced the error that you report, but I''ve heard of some people having better luch using `gem install rails` instead of `gem update` to update their instance of Rails. On Tue, 22 Feb 2005 12:23:02 +0100, Dennis Oelkers <dennis-TFyySJyCJcUbwZ3undymew@public.gmane.org> wrote:> Hello list, > > I am getting this error while trying to update to the beta gems almost > since day one: > > % gem update -s http://gems.rubyonrails.com > Upgrading installed gems... > Updating Gem source index for: http://gems.rubyonrails.com > Attempting remote upgrade of actionmailer > Attempting remote installation of ''actionmailer'' > ERROR: While executing gem ... (NoMethodError) > undefined method `serialize'' for > CGI::Session::ActiveRecordStore::Session:Class > % > > Does anyone know how to fix this? Some further information: > > % ruby -v > ruby 1.8.1 (2003-12-25) [sparc-solaris2.9] > > % gem -v > 0.8.4 > > Kind regards, > Dennis Oelkers > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Patrick Spence wrote:> I''ve not experienced the error that you report, but I''ve heard of some > people having better luch using `gem install rails` instead of `gem > update` to update their instance of Rails.gem install rails will install or update rails gem update will update every gem you already have installed. I, too, am getting errors installing rails: Attempting remote installation of ''rails'' Install required dependency activesupport? [Yn] Y Install required dependency activerecord? [Yn] Y Install required dependency actionpack? [Yn] Y Install required dependency actionmailer? [Yn] Y ERROR: While executing gem ... (NoMethodError) undefined method `serialize'' for CGI::Session::ActiveRecordStore::Session:Class This happens *every* time I install rails to a new version (about 4 times now). Each time I''ve been told to delete old copies of actionmailer. It helped in the past (but did nothing to stop it for the next time). It didn''t help this time. What is solution? BTW, none of my rails apps have any use for the mailer; it does not appear to be required for basic Rails behavior, but seems to be bundled in there anyway. Choosing not to install it during a gem install just fails the installation, so I''m stuck with it, and this installation issue. Fixes? Work-arounds? James