Hi, Depending on the project you have and if ruby is in your path settings, you can try this from the main directory of a rails project: Open a command prompt for the directory of the project. Type ruby script/console Let me know if that does anything. You may have to set ruby/bin in your path variable.
On Oct 10, 2:09 pm, Nnah <[EMAIL PROTECTED]> wrote: > I am having an issue running rails console from netbeans 6.1. Whenever > I right click on the project name and select "Rails Console" I get the > below error. Can someone please help me out. I am on Windows XP and > have Netbeans 6.1. I am not using the JRuby. I installed my own ruby. > > Loading development environment (Rails 2.1.0) > > c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/console.rb: > 32:in `exec': Exec format error - irb --noreadline -r irb/completion - > r "C:/Documents and Settings/INNAH/Desktop/Naz/NetBeansProject/ > WebTemplate/config/environment" -r console_app -r console_with_helpers > --simple-prompt (Errno::ENOEXEC) > > from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/ > console.rb:32 > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require' > > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > > from script/console:3 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ruby-on-rails-programming-with-passion" group. To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---
