# Can't start rails app: vendor/rails/railties/lib/initializer

**URL:** <https://www.ruby-forum.com/t/cant-start-rails-app-vendor-rails-railties-lib-initializer/141795>\
**Category:** Rails\
**Created:** [June 30, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/cant-start-rails-app-vendor-rails-railties-lib-initializer/141795 "2008-06-30T17:31:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![raimon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@raimon](https://www.ruby-forum.com/u/raimon)\
**Post date:** [June 30, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/cant-start-rails-app-vendor-rails-railties-lib-initializer/141795/1 "2008-06-30T17:31:19Z")

</div>

Hello,

after some months of not using Ruby On Rails, I want to do more work  
with it, but I can’t start one of my rails projects:

sh-3.2# mongrel\_rails start  
\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment…  
/Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require': no such file to load -- /Users/rai/Documents/Ruby/dades/config/../vendor/rails/railties/lib/initializer (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in`require’  
from /Users/rai/Documents/Ruby/dades/config/boot.rb:7  
from /Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in`require’  
from /Users/rai/Documents/Ruby/dades/config/environment.rb:11  
from /Library/Ruby/Site/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in`require’  
from  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/…/lib/mongrel/rails.rb:147:in  
`rails' ... 8 levels... from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/command.rb:212:in`run’  
from  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel\_rails:281  
from /usr/bin/mongrel\_rails:19:in `load’  
from /usr/bin/mongrel\_rails:19  
sh-3.2#

I think I have installed rails 2.1 and 1.2.5, not sure how to check it.

I figure the problem is in the environment.rb in this line:

RAILS\_GEM\_VERSION = ‘1.2.5’ unless defined? RAILS\_GEM\_VERSION

I have some other rails project that use that line but with other rails  
version, and they work ok.

Any clue ?

thanks!

raimon

---

<div class="post-metadata">

**Author:** ![raimon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@raimon](https://www.ruby-forum.com/u/raimon)\
**Post date:** [June 30, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/cant-start-rails-app-vendor-rails-railties-lib-initializer/141795/2 "2008-06-30T18:35:21Z")

</div>

On 30 Jun 2008, at 16:31, Raimon Fs wrote:

> Hello,
> 
> after some months of not using Ruby On Rails, I want to do more work  
> with it, but I can’t start one of my rails projects:

what’s in vendor/rails ?

Fred

---

<div class="post-metadata">

**Author:** ![raimon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@raimon](https://www.ruby-forum.com/u/raimon)\
**Post date:** [June 30, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/cant-start-rails-app-vendor-rails-railties-lib-initializer/141795/3 "2008-06-30T21:46:53Z")

</div>

On 30 Jun 2008, at 20:10, Raimon Fs wrote:

> > 
> 
> I’ve just deleted the rails folder and now the rails application  
> runs ok  
> …
> 
> so, why ?

because if there is a rails folder, boot.rb assumes that you want to  
load rails from that folder.

Fred

---

<div class="post-metadata">

**Author:** ![raimon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@raimon](https://www.ruby-forum.com/u/raimon)\
**Post date:** [June 30, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/cant-start-rails-app-vendor-rails-railties-lib-initializer/141795/4 "2008-06-30T21:10:21Z")

</div>

Frederick C. wrote:

> On 30 Jun 2008, at 16:31, Raimon Fs wrote:
> 
> > Hello,
> > 
> > after some months of not using Ruby On Rails, I want to do more work  
> > with it, but I can’t start one of my rails projects:
> 
> what’s in vendor/rails ?
> 
> Fred

nothing, just an empty foler called rails

…vendor/plugins/will\_paginate  
…vendor/rails/

all my other rails projects doesn’t have the rails folder …

I’ve just deleted the rails folder and now the rails application runs ok  
…

so, why ?

thanks!

raimon

---

<div class="post-metadata">

**Author:** ![raimon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@raimon](https://www.ruby-forum.com/u/raimon)\
**Post date:** [June 30, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/cant-start-rails-app-vendor-rails-railties-lib-initializer/141795/5 "2008-06-30T22:06:35Z")

</div>

Frederick C. wrote:

> On 30 Jun 2008, at 20:10, Raimon Fs wrote:
> 
> > > 
> > 
> > I’ve just deleted the rails folder and now the rails application  
> > runs ok  
> > …
> > 
> > so, why ?
> 
> because if there is a rails folder, boot.rb assumes that you want to  
> load rails from that folder.
> 
> Fred

ok, thanks, maybe this folder appeared when I tried to freeze my rails  
1.2.5 version to this app but I don’t now what could happen …

tanks again!

raimon
