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.
Alex (Guest)
on 2006-03-30 20: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?
François B. (Guest)
on 2006-03-30 20:37
(Received via mailing list)
Hello Alex,

2006/3/30, Alex <removed_email_address@domain.invalid>:
> 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 !
Richard L. (Guest)
on 2006-03-30 23: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
Dave S. (Guest)
on 2006-03-31 01:00
(Received via mailing list)
On Thursday 30 Mar 2006 17:36, Francois B. wrote:
> Two things:
> 1. Upgrade to Rails 1.8.4

Surely you mean Ruby 1.8.4?  ;-)

~Dave

--

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

PGP Key: http://www.rentamonkey.com/pgpkey.asc
Richard L. (Guest)
on 2006-03-31 02:44
(Received via mailing list)
Dave S. wrote:
> On Thursday 30 Mar 2006 17:36, Francois B. 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
François B. (Guest)
on 2006-03-31 05:34
(Received via mailing list)
2006/3/30, Dave S. <removed_email_address@domain.invalid>:
> On Thursday 30 Mar 2006 17:36, Francois B. 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 !
Kenneth L. (Guest)
on 2006-03-31 08: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?
unknown (Guest)
on 2006-03-31 11:28
(Received via mailing list)
Have you tried installing rails again after installing ruby?
-Nathan
brett (Guest)
on 2006-03-31 17: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: removed_email_address@domain.invalid
Paul (Guest)
on 2007-03-12 10: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.