very strange.... I''m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the usual problem there. ...but that''s well documented... everything was fine....but then I tried the irb console. in every shell I have (netbeans, git bash, windows shell) I got this result: ----------------------------------------------------------------------------------------- Doug@APOLLO /c/projects/work/MathCraze $ script/console Loading development environment (Rails 2.2.2) c:\projects\work\MathCraze>#@echo off ''#@echo'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze>#goto endofruby ''#goto'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze>#!/bin/ruby ''#!'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># irb.rb - intaractive ruby ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># $Release Version: 0.9.5 $ ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># $Revision: 1.2.2.1 $ ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># $Date: 2005/04/19 19:24:56 $ ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># by Keiju ISHITSUKA(keiju@ruby- lang.org) ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze>require "irb" ''require'' is not recognized as an internal or external command, operable program or batch file. The syntax of the command is incorrect. c:\projects\work\MathCraze>if __FILE__ == $0 ----------------------------------------------------------------------------------------------------------------- Now with Netbeans (6.5), you can run a Rails Console or a ruby IRB off the context menu of a project. While the Rails Console gave output like above, The Ruby IRB "worked", ...see below.... when I loaded the rails environment manually.??????? ======================================================================.irbrc successfully loaded>> load ''config/environment.rb''load ''config/environment.rb'' => true>> u = User.newu = User.new => #<User id: nil, login: nil, crypted_password: nil, password_salt: nil, persistence_token: nil, login_count: nil, last_request_at: nil, last_login_at: nil, current_login_at: nil, last_login_ip: nil, current_login_ip: nil, created_at: nil, updated_at: nil>>> f = FlashCardGame.newf = FlashCardGame.new => #<FlashCardGame:0x5c86d4c @y=98, @x=75, @answer=173>>>==================================================================== ANY Ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
strange.... I''m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the usual problem there. ...but fixed that pretty easily ..(it''s well documented)... everything was fine....but then I tried to use IRB. in every shell I have (netbeans, git bash, windows shell) I got this result: ----------------------------------------------------------------------------------------- Doug@APOLLO /c/projects/work/MathCraze $ script/console Loading development environment (Rails 2.2.2) c:\projects\work\MathCraze>#@echo off ''#@echo'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze>#goto endofruby ''#goto'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze>#!/bin/ruby ''#!'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># irb.rb - intaractive ruby ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># $Release Version: 0.9.5 $ ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># $Revision: 1.2.2.1 $ ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># $Date: 2005/04/19 19:24:56 $ ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># by Keiju ISHITSUKA(keiju@ruby- lang.org) ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze>require "irb" ''require'' is not recognized as an internal or external command, operable program or batch file. The syntax of the command is incorrect. c:\projects\work\MathCraze>if __FILE__ == $0 ----------------------------------------------------------------------------------------------------------------- In Netbeans (6.5), while the Rails Console gives similiar output, however, the Ruby IRB sort of "worked", but I had to load the environment manually. ...see below... ======================================================================.irbrc successfully loaded>> load ''config/environment.rb''load ''config/environment.rb'' => true>> u = User.newu = User.new => #<User id: nil, login: nil, crypted_password: nil, password_salt: nil, persistence_token: nil, login_count: nil, last_request_at: nil, last_login_at: nil, current_login_at: nil, last_login_ip: nil, current_login_ip: nil, created_at: nil, updated_at: nil>>> f = FlashCardGame.newf = FlashCardGame.new => #<FlashCardGame:0x5c86d4c @y=98, @x=75, @answer=173>>>==================================================================== ANY Ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
very strange.... I''m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the usual problem there. ...but that''s well documented... everything was fine....but then I tried the irb console. in every shell I have (netbeans, git bash, windows shell) I got this result: ----------------------------------------------------------------------------------------- Doug@APOLLO /c/projects/work/MathCraze $ script/console Loading development environment (Rails 2.2.2) c:\projects\work\MathCraze>#@echo off ''#@echo'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze>#goto endofruby ''#goto'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze>#!/bin/ruby ''#!'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># irb.rb - intaractive ruby ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># $Release Version: 0.9.5 $ ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># $Revision: 1.2.2.1 $ ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># $Date: 2005/04/19 19:24:56 $ ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># by Keiju ISHITSUKA(keiju@ruby- lang.org) ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze># ''#'' is not recognized as an internal or external command, operable program or batch file. c:\projects\work\MathCraze>require "irb" ''require'' is not recognized as an internal or external command, operable program or batch file. The syntax of the command is incorrect. c:\projects\work\MathCraze>if __FILE__ == $0 ----------------------------------------------------------------------------------------------------------------- In Netbeans (6.5), while the Rails Console gives similiar output, however, the Ruby IRB sort of "worked", but I had to load the environment manually. ...see below... ======================================================================.irbrc successfully loaded>> load ''config/environment.rb''load ''config/environment.rb'' => true>> u = User.newu = User.new => #<User id: nil, login: nil, crypted_password: nil, password_salt: nil, persistence_token: nil, login_count: nil, last_request_at: nil, last_login_at: nil, current_login_at: nil, last_login_ip: nil, current_login_ip: nil, created_at: nil, updated_at: nil>>> f = FlashCardGame.newf = FlashCardGame.new => #<FlashCardGame:0x5c86d4c @y=98, @x=75, @answer=173>>>==================================================================== ANY Ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Don''t u need to type ruby in front of ruby scripts on windows!? Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 07/02/2009, at 12:06 PM, Doug <doug14-yBeKhBN/0LDR7s880joybQ@public.gmane.org> wrote:> > very strange.... > I''m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the > usual problem there. > ...but that''s well documented... > > everything was fine....but then I tried the irb console. > in every shell I have (netbeans, git bash, windows shell) > I got this result: > > --- > --- > --- > --- > --- > --- > --- > -------------------------------------------------------------------- > Doug@APOLLO /c/projects/work/MathCraze > $ script/console > Loading development environment (Rails 2.2.2) > > c:\projects\work\MathCraze>#@echo off > ''#@echo'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze>#goto endofruby > ''#goto'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze>#!/bin/ruby > ''#!'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze># > ''#'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze># irb.rb - intaractive ruby > ''#'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze># $Release Version: 0.9.5 $ > ''#'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze># $Revision: 1.2.2.1 $ > ''#'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze># $Date: 2005/04/19 19:24:56 $ > ''#'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze># by Keiju ISHITSUKA(keiju@ruby- > lang.org) > ''#'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze># > ''#'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze>require "irb" > ''require'' is not recognized as an internal or external command, > operable program or batch file. > The syntax of the command is incorrect. > c:\projects\work\MathCraze>if __FILE__ == $0 > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > -------------------------------------------------------------------- > > In Netbeans (6.5), while the Rails Console gives similiar output, > however, > the Ruby IRB sort of "worked", but I had to load the environment > manually. > ...see below... > > ==> ===================================================================> .irbrc successfully loaded >>> load ''config/environment.rb'' > load ''config/environment.rb'' > > => true >>> u = User.new > u = User.new > > => #<User id: nil, login: nil, crypted_password: nil, password_salt: > nil, persistence_token: nil, login_count: nil, last_request_at: nil, > last_login_at: nil, current_login_at: nil, last_login_ip: nil, > current_login_ip: nil, created_at: nil, updated_at: nil> >>> f = FlashCardGame.new > f = FlashCardGame.new > > => #<FlashCardGame:0x5c86d4c @y=98, @x=75, @answer=173> >>> > > ====================================================================> > ANY Ideas? > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 6, 7:53 pm, Julian Leviston <jul...-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org> wrote:> Don''t u need to type ruby in front of ruby scripts on windows!? > > Blog:http://random8.zenunit.com/ > Learn rails:http://sensei.zenunit.com/ >Yeah, I used to have to do that.....especially in the DOS shell. not sure why that changed. but in this case it doesn''t make any difference. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
What version of Ruby are you running? From the output, it appears that somebody''s commented out several DOS batch commands (@echo and friends) with #s in irb.bat. Does calling irb directly from the command line work? --Matt Jones On Feb 6, 6:13 pm, Doug <doug.goldi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> strange.... > I''m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the > usual problem there. > ...but fixed that pretty easily ..(it''s well documented)... > > everything was fine....but then I tried to use IRB. > in every shell I have (netbeans, git bash, windows shell) > I got this result: > > --------------------------------------------------------------------------- -------------- > Doug@APOLLO /c/projects/work/MathCraze > $ script/console > Loading development environment (Rails 2.2.2) > > c:\projects\work\MathCraze>#@echo off > ''#@echo'' is not recognized as an internal or external command, > operable program or batch file. > > c:\projects\work\MathCraze>#goto endofruby > ''#goto'' is not recognized as an internal or external command, > operable program or batch file. >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---