Whenever I do script/console I get an error message:
Loading development enviroment.
c:/ruby/lib/ruby/1.8/irb/init.rb:151: in ‘parse_opts’ : undefined method
‘upcase’ for nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/1.8/irb/init.rb: in ‘setup’
from c:/ruby/lib/ruby/1.8/irb/init.rb:54: in ‘start’
from c:/ruby/bin/irb:13
It used to work before I upgraded to Rails 1.1. Everything else
(webrick) works. I’ve a feeling that it’s because I’m using Ruby 1.82
Loading development enviroment.
c:/ruby/lib/ruby/1.8/irb/init.rb:151: in ‘parse_opts’ : undefined method
‘upcase’ for nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/1.8/irb/init.rb: in ‘setup’
from c:/ruby/lib/ruby/1.8/irb/init.rb:54: in ‘start’
from c:/ruby/bin/irb:13
It used to work before I upgraded to Rails 1.1. Everything else
(webrick) works. I’ve a feeling that it’s because I’m using Ruby 1.82
Two things:
Upgrade to Rails 1.8.4
Edit vendor/rails/railties/lib/commands/console.rb and remove the
“–prompt-mode simple” option from the last line:
Index: vendor/rails/railties/lib/commands/console.rb
===================================================================
— vendor/rails/railties/lib/commands/console.rb (revision 4097)
+++ vendor/rails/railties/lib/commands/console.rb (working copy)
@@ -22,4 +22,4 @@
else
puts “Loading #{ENV[‘RAILS_ENV’]} environment.”
end
-exec “#{options[:irb]} #{libs} --prompt-mode simple”
+exec “#{options[:irb]} #{libs}”
Using 1.8.4 is recommended, although I haven’t gone down that route yet.
Thanks for the post, I recently checked your site,
www.adnexus-recruitment.nl, but didnt see many Ruby jobs. I was
wondering as I’m developing with a company in Amsterdam, have 5 years
J2EE and about 1 year in Rails, are you still looking for developers?
I’m helping lots of developers and architects in The Netherlands find
jobs
using Ruby on Rails, if anyone is interested in contacting me for work -
permanent or contract based, I might be able to help.