Script/console on windows

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

“Martin G.” [email protected]
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:inrequire’
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 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