Forum: Ruby on Rails script/console not working after Rails 1.1 upgrade

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.
Baf018e2cc4616e4776d323215c7136c?d=identicon&s=25 Alex (Guest)
on 2006-03-30 18:27
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

Any Ideas?
3dd4b52a0946bd698b1d1635a46ea3a3?d=identicon&s=25 François Beausoleil (fbeausoleil)
on 2006-03-30 18:37
(Received via mailing list)
Hello Alex,

2006/3/30, Alex <maccman@gmail.com>:
> 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:
1. Upgrade to Rails 1.8.4
2. 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.

Hope that helps !
C004d67820a114e24ccf6f2ddaf5b236?d=identicon&s=25 Richard Livsey (Guest)
on 2006-03-30 21:04
(Received via mailing list)
Alex wrote:
> (webrick) works. I've a feeling that it's because I'm using Ruby 1.82
>
> Any Ideas?
>

I had the same problem
(http://livsey.org/2006/03/27/scriptconsole-with-ed...)

See this ticket and grab the irb.bat attached which should fix the
problem.
http://dev.rubyonrails.org/ticket/4362

hth
Cf7e5e4b5ca573eec214191fac420a2f?d=identicon&s=25 Dave Silvester (Guest)
on 2006-03-30 23:00
(Received via mailing list)
On Thursday 30 Mar 2006 17:36, Francois Beausoleil wrote:
> Two things:
> 1. Upgrade to Rails 1.8.4

Surely you mean Ruby 1.8.4?  ;-)

~Dave

--

Dave Silvester
Rent-A-Monkey Website Development
http://www.rentamonkey.com/

PGP Key: http://www.rentamonkey.com/pgpkey.asc
C004d67820a114e24ccf6f2ddaf5b236?d=identicon&s=25 Richard Livsey (Guest)
on 2006-03-31 00:44
(Received via mailing list)
Dave Silvester wrote:
> On Thursday 30 Mar 2006 17:36, Francois Beausoleil wrote:
>> Two things:
>> 1. Upgrade to Rails 1.8.4
>
> Surely you mean Ruby 1.8.4?  ;-)
>
> ~Dave
>

Upgrading to Rails 1.8.4 should fix the problem too.

May be waiting a while for that one though :op
3dd4b52a0946bd698b1d1635a46ea3a3?d=identicon&s=25 François Beausoleil (fbeausoleil)
on 2006-03-31 03:34
(Received via mailing list)
2006/3/30, Dave Silvester <dave@rentamonkey.com>:
> On Thursday 30 Mar 2006 17:36, Francois Beausoleil wrote:
> > Two things:
> > 1. Upgrade to Rails 1.8.4
>
> Surely you mean Ruby 1.8.4?  ;-)

Uh, yeah.  You're right.  Can you see I think in Rails all the time ?

Chuckle all you want.  I laughed out loud instead :)

Bye !
B3260ee62969961010117e21e9872a3a?d=identicon&s=25 Kenneth Lee (Guest)
on 2006-03-31 06:46
(Received via mailing list)
I'm having problems running rails at all w/ ruby 1.8.4.  It compiles
clean but it won't run rails.  Anyone else have problems like this?
D5145c421cd25af6fa577c15219add90?d=identicon&s=25 unknown (Guest)
on 2006-03-31 09:28
(Received via mailing list)
Have you tried installing rails again after installing ruby?
-Nathan
6570ac6780e84423adb052462101d9ba?d=identicon&s=25 brett (Guest)
on 2006-03-31 15:27
(Received via mailing list)
Hi all,

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.

Regards
Brett


Brett Dawkins
Adnexus Recruitment Services
Tel: + 31 20 799 7988
Email: brett.dawkins@adnexus-recruitment.nl
568306b2833300bacf6ced32b1405719?d=identicon&s=25 Paul (Guest)
on 2007-03-12 09:55
Brett,

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?

Best regards
Paul
This topic is locked and can not be replied to.