Re: netbeans6 + RoR errors

Dan Ha
Sat, 20 Oct 2007 05:54:35 -0000

Michael Graff wrote:
> On 10/16/07, Igor K.
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:
>
>> but before installing rails change ruby interpreter in options menu to
>> that one you have installed from ruby-lang.org.
>
> Ah ha!  This is the step I believe I was missing.  Thanks!
>
> I had ruby, rails, and about 25 gems installed a long time ago.  I
> suppose I could have used netbeans just to edit the files, but
where''s
> the fun in that?
>
> --Michael

NetBeans 6.0 Beta installs JRuby 1.0.1 by default. The issue you have is
that real path returned from Windows contains letter drive, which
creates a problem on line 420 of realpath_rec method of pathname.rb in
that particular Jruby directory C:/Program Files/NetBeans 6.0 Beta
1/ruby1/jruby-1.0.1/lib/ruby/1.8. I found a patch for this and
incorporate it in the attached pathname.rb file. If you replace it in
that particular directory, it should fix your problem in JRuby 1.0.1 and
you are good to run your Rails app in NetBeans 6 Beta. You can diff the
attached file to see what the patch is. I am running Rails 1.2.5 and
NetBeans 6 Beta (JRuby) on Windows XP Professional. This patch is for
JRuby only.

Good luck.

-- Dan


Attachments:
http://www.ruby-forum.com/attachment/714/pathname.rb

--
Posted via http://www.ruby-forum.com/.