Hiall, When I try to run script/console from a windows command line like f:\rails_app\ruby script\console I get the following error: F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- initializer (LoadError) from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from ./script/../config/boot.rb:16 from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' from script/console:2 Now what is this :)? cheers Martin
make sure you''re in the root of your rails project directory and then run: ruby script\console So if your project directory is C:\rails_app\blog Then do a: c: cd \rails_app\blog rubys script\console This may / may not solve your problem Michael
That''s what I was doing but it doesn''t work .. Thx anyway! On 5/15/06, Michael Trier <mtrier@gmail.com> wrote:> make sure you''re in the root of your rails project directory and then run: > > ruby script\console > > So if your project directory is C:\rails_app\blog > > Then do a: > > c: > cd \rails_app\blog > rubys script\console > > This may / may not solve your problem > > Michael > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
"Martin Gamsjaeger" <gamsnjaga@gmail.com> writes:> Hiall, > > When I try to run script/console from a windows command line like > > f:\rails_app\ruby script\console > > I get the following error: > F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require__'': no such file to load -- initializer (LoadError) > from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require'' > from ./script/../config/boot.rb:16 > from F:/Programme/Ruby-1.8.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require'' > from script/console:2 > > Now what is this :)? >Looks like your rail setup or something is screwed up. Try creating a new rails application and see if it works, else reinstall rails. In case a new app works, then something in your app is wonky. Happy debugging. HTH. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | Great wits are sure to madness near allied, | And thin partitions do their bounds divide. | | (John Dryden, Absalom and Achitophel, 1681) `----
> -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of > Martin Gamsjaeger > Sent: Sunday, May 14, 2006 7:50 PM > To: rails@lists.rubyonrails.org > Subject: Re: [Rails] script/console on windows > > > That''s what I was doing but it doesn''t work .. Thx anyway!I noticed you''re running from the F: drive. By any chance do you have multiple copies of Ruby installed in different directories? Also, what does ''echo %RUBYOPT%'' return when you run it from the command line? Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.