Hi, I tried posting this last night, but it doesn''t appear to have been posted successfully as I don''t see it in my newsreader, so apologies if this is a duplicate post. I''m running on OS X 10.4 have have been developing apps on my box happily with Rails 0.12 for weeks now. Then today I upgraded to Rails 0.13 and also upgraded my applications by replacing the required files by running "rails ." in the app directory. All seemed to be fine however starting the application up and trying to access a page I''m given this error: #<NoMethodError: undefined method `new_session'' for #<CGI::Session:0x259f6c0 @session_id="5fa8836093b0f5f8">> It doesn''t matter if the app is persisting its sessions to drb, a database of the file system, I still get this message. Clearing out sessions doesn''t fix this either. Any ideas what I''m doing wrong? Thanks in advance!
Can you show full stack trace? Kent. On 7/8/05, Jonathan Conway <jonathan-igUuQm22qkfQT0dZR+AlfA@public.gmane.org> wrote:> Hi, > I tried posting this last night, but it doesn''t appear to have been > posted successfully as I don''t see it in my newsreader, so apologies if > this is a duplicate post. > > I''m running on OS X 10.4 have have been developing apps on my box > happily with Rails 0.12 for weeks > now. Then today I upgraded to Rails 0.13 and also upgraded my > applications by replacing the required > files by running "rails ." in the app directory. > All seemed to be fine however starting the application up and trying to > access a page I''m given this error: > > #<NoMethodError: undefined method `new_session'' for > #<CGI::Session:0x259f6c0 @session_id="5fa8836093b0f5f8">> > > It doesn''t matter if the app is persisting its sessions to drb, a > database of the file system, I still get this > message. > Clearing out sessions doesn''t fix this either. Any ideas what I''m doing > wrong? > > Thanks in advance! > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On Jul 8, 2005, at 4:13 AM, Jonathan Conway wrote:> I''m running on OS X 10.4 have have been developing apps on my box > happily with Rails 0.12 for weeks > now. Then today I upgraded to Rails 0.13 and also upgraded my > applications by replacing the required > files by running "rails ." in the app directory. > All seemed to be fine however starting the application up and > trying to access a page I''m given this error: > > #<NoMethodError: undefined method `new_session'' for #<CGI::Session: > 0x259f6c0 @session_id="5fa8836093b0f5f8">> > > It doesn''t matter if the app is persisting its sessions to drb, a > database of the file system, I still get this > message. > Clearing out sessions doesn''t fix this either. Any ideas what I''m > doing wrong? > > Thanks in advance!Please include the entire backtrace so we can track this down. Do you happen to be running Ruby 1.8.2 or later? $ ruby -v ruby 1.8.2 (2004-12-25) [x86_64-linux] If the version is 1.8.2 but the date is earlier than Dec 25, you''re on a 1.8.2 prerelease. Thanks, jeremy
Ah! I''m a fool!! Indeed, doing a ruby -v gave me this output. ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0] Upgrading to the latest Ruby installer for my mac fixed the problem. Cheers! Jeremy Kemper wrote:> On Jul 8, 2005, at 4:13 AM, Jonathan Conway wrote: > >> I''m running on OS X 10.4 have have been developing apps on my box >> happily with Rails 0.12 for weeks >> now. Then today I upgraded to Rails 0.13 and also upgraded my >> applications by replacing the required >> files by running "rails ." in the app directory. >> All seemed to be fine however starting the application up and trying >> to access a page I''m given this error: >> >> #<NoMethodError: undefined method `new_session'' for #<CGI::Session: >> 0x259f6c0 @session_id="5fa8836093b0f5f8">> >> >> It doesn''t matter if the app is persisting its sessions to drb, a >> database of the file system, I still get this >> message. >> Clearing out sessions doesn''t fix this either. Any ideas what I''m >> doing wrong? >> >> Thanks in advance! > > > Please include the entire backtrace so we can track this down. > > Do you happen to be running Ruby 1.8.2 or later? > $ ruby -v > ruby 1.8.2 (2004-12-25) [x86_64-linux] > If the version is 1.8.2 but the date is earlier than Dec 25, > you''re on a 1.8.2 prerelease. > > Thanks, > jeremy