I just ran the gem bundle on the third_rails demo app, but for some reason rails can''t be loaded!? kristian-mandrups-macbook-pro:third_rails kristianconsult$ rails -v Rails 3.0.pre kristian-mandrups-macbook-pro:third_rails kristianconsult$ script/ generate model Post name:string /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/boot.rb: 71:in `require'': no such file to load -- rails (LoadError) from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ boot.rb:71:in `load_initializer'' from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ boot.rb:44:in `run'' from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ boot.rb:16:in `boot!'' from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ boot.rb:148 from script/generate:2:in `require'' from script/generate:2 kristian-mandrups-macbook-pro:third_rails kristianconsult$ script/ console /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/boot.rb: 71:in `require'': no such file to load -- rails (LoadError) ... Anyone? -- 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.
Aleksey Gureiev
2010-Jan-20 21:02 UTC
Re: Rails 3 Problem: no such file to load -- rails (LoadError)
You need to bundle your rails into the Rails 3 app. Did you do that? Also make sure that if you use multiple versions of Ruby, you will need either to re-bundle your gems under the one you decided to use after switching, or to add a symlink in vendor/gems/ruby. Hope it solves the problem. Aleksey On Jan 20, 10:06 pm, Kristian <kmand...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I just ran the gem bundle on the third_rails demo app, but for some > reason rails can''t be loaded!? > > kristian-mandrups-macbook-pro:third_rails kristianconsult$ rails -v > Rails 3.0.pre > > kristian-mandrups-macbook-pro:third_rails kristianconsult$ script/ > generate model Post name:string > /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/boot.rb: > 71:in `require'': no such file to load -- rails (LoadError) > from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ > boot.rb:71:in `load_initializer'' > from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ > boot.rb:44:in `run'' > from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ > boot.rb:16:in `boot!'' > from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ > boot.rb:148 > from script/generate:2:in `require'' > from script/generate:2 > kristian-mandrups-macbook-pro:third_rails kristianconsult$ script/ > console > /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/boot.rb: > 71:in `require'': no such file to load -- rails (LoadError) > ... > > Anyone?-- 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.
Conrad Taylor
2010-Jan-20 21:52 UTC
Re: Rails 3 Problem: no such file to load -- rails (LoadError)
On Wed, Jan 20, 2010 at 3:06 AM, Kristian <kmandrup-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I just ran the gem bundle on the third_rails demo app, but for some > reason rails can''t be loaded!? > > kristian-mandrups-macbook-pro:third_rails kristianconsult$ rails -v > Rails 3.0.pre > > kristian-mandrups-macbook-pro:third_rails kristianconsult$ script/ > generate model Post name:string > /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/boot.rb: > 71:in `require'': no such file to load -- rails (LoadError) > from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ > boot.rb:71:in `load_initializer'' > from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ > boot.rb:44:in `run'' > from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ > boot.rb:16:in `boot!'' > from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/ > boot.rb:148 > from script/generate:2:in `require'' > from script/generate:2 > kristian-mandrups-macbook-pro:third_rails kristianconsult$ script/ > console > /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/boot.rb: > 71:in `require'': no such file to load -- rails (LoadError) > ... > > Anyone? > >If you''ew using Rails 3.0.pre, then I would recommend doing the following: 0) follow the instructions here first http://weblog.rubyonrails.org/2010/1/1/getting-a-new-app-running-on-edge a) see if similar ticket exists here https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/overview b) if (a) exists, then add your comments to that ticket. Otherwise, please file another ticket providing the following: - ruby version (i.e. ruby -v) - OS version - the exact steps to recreate the issue in a understandable stepwise format Lastly, I would recommend the above steps for all people interested using Rails 3.0.pre because these types of issues need to be made aware to the Rails core team. Good luck, -Conrad --> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Reasonably Related Threads
- CRITICAL: Rails 3 error : parser.bundle unhandled exception!!!
- Can't get gem bundler to work with either rvm 1.9.1 and 1.9.2
- undefined method `run_all' for :Array
- Rails problems running rake and other tasks - undefined method `action_controller'
- `method_missing': undefined method `i18n' for #<Rails::Railtie::Configuration:0x000001010fce98>