I''m trying to upgrade my Rails 2.3.5 app to Rails 3, and when I try and start the rails server with ''rails s'' I get this: /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/ dependencies.rb:239:in `require'': no such file to load -- activerecord (LoadError) Using Mac OS X Snow Leopard, and it seems the error traces back to the config.ru file in the first line: require ::File.expand_path(''../config/environment'', __FILE__) I copied this config.ru file from a fresh Rails 3 app. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Jeffrey L. Taylor
2010-Dec-11 18:57 UTC
Re: `require'': no such file to load -- activerecord
Quoting Mike C <snibble-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> I''m trying to upgrade my Rails 2.3.5 app to Rails 3, and when I try > and start the rails server with ''rails s'' I get this: > > /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/ > dependencies.rb:239:in `require'': no such file to load -- activerecord > (LoadError) >The file changed name to active_record, note the underscore. If you upgrade from 2.3.5 to 2.3.x latest, it will let you know about such changes via deprecation warnings. HTH, Jeffrey -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks for the response! I don''t manually include active record anywhere, so how can I fix this? On Dec 11, 10:57 am, "Jeffrey L. Taylor" <r...-f/t7CGFWhwGcvWdFBKKxig@public.gmane.org> wrote:> Quoting Mike C <snib...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > I''m trying to upgrade my Rails 2.3.5 app to Rails 3, and when I try > > and start the rails server with ''rails s'' I get this: > > > /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/ > > dependencies.rb:239:in `require'': no such file to load -- activerecord > > (LoadError) > > The file changed name to active_record, note the underscore. If you upgrade > from 2.3.5 to 2.3.x latest, it will let you know about such changes via > deprecation warnings. > > HTH, > Jeffrey-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Jeffrey L. Taylor
2010-Dec-12 06:03 UTC
Re: Re: `require'': no such file to load -- activerecord
Look at the stack dump. One of the Gems or plug-ins is requiring the file. Jeffrey Quoting Mike C <snibble-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> Thanks for the response! I don''t manually include active record > anywhere, so how can I fix this? > > On Dec 11, 10:57 am, "Jeffrey L. Taylor" <r...-f/t7CGFWhwGcvWdFBKKxig@public.gmane.org> > wrote: > > Quoting Mike C <snib...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > > > I''m trying to upgrade my Rails 2.3.5 app to Rails 3, and when I try > > > and start the rails server with ''rails s'' I get this: > > > > > /Library/Ruby/Gems/1.8/gems/activesupport-3.0.3/lib/active_support/ > > > dependencies.rb:239:in `require'': no such file to load -- activerecord > > > (LoadError) > > > > The file changed name to active_record, note the underscore. If you upgrade > > from 2.3.5 to 2.3.x latest, it will let you know about such changes via > > deprecation warnings. > > > > HTH, > > Jeffrey > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.