can't start rails app: vendor/rails/railties/lib/initializer

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

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

Frederick Cheung 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

Frederick Cheung 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 ?

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

Fred

Frederick Cheung wrote: