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:inrequire’
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:inrequire’
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:inrequire’
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:inrun’
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

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

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

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs