Forum: Ruby on Rails script/console on windows

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Martin G. (Guest)
on 2006-05-15 03:36
(Received via mailing list)
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
Michael T. (Guest)
on 2006-05-15 05:22
(Received via mailing list)
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
Martin G. (Guest)
on 2006-05-15 05:50
(Received via mailing list)
That's what I was doing but it doesn't work .. Thx anyway!
Surendra S. (Guest)
on 2006-05-15 15:23
(Received via mailing list)
"Martin G." <removed_email_address@domain.invalid>
writes:

> `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 S.
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)
`----
This topic is locked and can not be replied to.