Aaron Chandler
2006-Jun-05 04:58 UTC
[Rails] script/console LoadError - ''no such file to load''
Hello, When I enter the command "ruby script/console", instead of an irb session beginning, I get the following error: [code] c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in ''require__'': No such file to load -- ./script/../config/../config/environment (LoadError) [/code] I''m a little new to Rails, but it appears to me that the path to the required file is incorrect. The ''environmennt.rb'' file is inside the config folder, which is a sibling to the script folder, while the error states that rails is looking for a config folder that is two levels up from the script folder. Does this seem to be the case to anyone else? If so, what can be done about this? For reference, I''m running Rails 1.1.2 w/ Ruby 1.8.2 on an win32 machine (for development). Thanks, Aaron -- Posted via http://www.ruby-forum.com/.
Wilson Bilkovich
2006-Jun-05 16:34 UTC
[Rails] script/console LoadError - ''no such file to load''
On 6/5/06, Aaron Chandler <agchandler.webuser@gmail.com> wrote:> Hello, > > When I enter the command "ruby script/console", instead of an irb > session beginning, I get the following error: > > [code] > c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > ''require__'': No such file to load -- > ./script/../config/../config/environment (LoadError) > [/code] > > I''m a little new to Rails, but it appears to me that the path to the > required file is incorrect. The ''environmennt.rb'' file is inside the > config folder, which is a sibling to the script folder, while the error > states that rails is looking for a config folder that is two levels up > from the script folder. Does this seem to be the case to anyone else? If > so, what can be done about this? > > For reference, I''m running Rails 1.1.2 w/ Ruby 1.8.2 on an win32 machine > (for development). >You wouldn''t happen to have any command-prompt customizations installed, such as XPize, would you?