# Rails 3 Problem: no such file to load -- rails (LoadError)

**URL:** <https://www.ruby-forum.com/t/rails-3-problem-no-such-file-to-load-rails-loaderror/181934>\
**Category:** Rails\
**Created:** [January 20, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/rails-3-problem-no-such-file-to-load-rails-loaderror/181934 "2010-01-20T12:09:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Post date:** [January 20, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/rails-3-problem-no-such-file-to-load-rails-loaderror/181934/1 "2010-01-20T12:09:50Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Kristian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Post date:** [January 20, 2010, 10:03pm UTC](https://www.ruby-forum.com/t/rails-3-problem-no-such-file-to-load-rails-loaderror/181934/2 "2010-01-20T22:03:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kristian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Post date:** [January 20, 2010, 10:54pm UTC](https://www.ruby-forum.com/t/rails-3-problem-no-such-file-to-load-rails-loaderror/181934/3 "2010-01-20T22:54:15Z")

</div>

On Wed, Jan 20, 2010 at 3:06 AM, Kristian [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> from /Users/kristianconsult/my_rails/rails3_apps/third_rails/config/
> 
> ```
> 
> 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:

1. follow the instructions here first

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

–
