Forum: Ruby on Rails NetBeans 6.0/Script Console Window

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.
D3fc5887a2f39f2e0c8989d39ce5e6f9?d=identicon&s=25 Bharat Ruparel (bruparel)
on 2007-03-09 16:33
Has anyone figured out how to turn NetBeans IRB window into Ruby on
Rails script/console window where the gems like ActiveRecord, ActionPack
etc are recognized?  May be an easy one for the Rails Guru's out there,
not for me.  By default, the NetBeans IRB window only loads Ruby.  I am
trying to see how well NetBeans 6.0's Ruby/RoR support works fully
realizing that it is an alpha environment?
Bharat
D3fc5887a2f39f2e0c8989d39ce5e6f9?d=identicon&s=25 Bharat Ruparel (bruparel)
on 2007-03-09 19:14
OK.  Here is what I got thus far.  I have installed InstantRails which
comes with its own "everything" and works well.  Just point your
NetBeans 6.0 to InstantRail's instance of MySQL.  You can easily do that
since NetBeans only wants the MySQL URL and the database could be
running anywhere.  Now use  NetBeans to do editing/browsing etc. and use
InstantRail's Console to do interactive debugging etc.  You will have
multiple servers loaded this way, i.e. two instances of "Java" since
NetBeans defaults to JRuby and launches its own version of Webrick in a
JVM etc.  If you have sufficiant RAM (I have two Gigs), you can have a
great development environment.
Looking good.  My goal is to see how well can we leverage the NetBeans
environment for Ruby/RoR development.
54d80d7f453dbeb62be9604bda054788?d=identicon&s=25 dysinger (Guest)
on 2007-03-09 22:11
(Received via mailing list)
My experience running Daily builds of NB6 w/ Ruby have been
interesting over the last two weeks.  The editor and code formatting
are great.    The rest of the IDE pales in comparison to Eclipse
Runtime w/ RDT, RadRails, Subclipse.  I like the editor though.

You can switch it off of JRuby on to your regular Ruby & Rails install
in the prefs.

IRB in NB is just IRB [ AFAIK ] and not the script/console you get
with rails.

The other thing that SUX is that it fires up webrick and there is no
way to stop/start webrick (I use mongrel).  Even if you quit NB it
leaves WB hanging as an orphaned thread a lot of the time.

On Mar 9, 8:14 am, Bharat Ruparel <rails-mailing-l...@andreas-s.net>
D3fc5887a2f39f2e0c8989d39ce5e6f9?d=identicon&s=25 Bharat Ruparel (bruparel)
on 2007-03-09 22:26
dysinger wrote:
> My experience running Daily builds of NB6 w/ Ruby have been
> interesting over the last two weeks.  The editor and code formatting
> are great.    The rest of the IDE pales in comparison to Eclipse
> Runtime w/ RDT, RadRails, Subclipse.  I like the editor though.
>
> You can switch it off of JRuby on to your regular Ruby & Rails install
> in the prefs.
>
> IRB in NB is just IRB [ AFAIK ] and not the script/console you get
> with rails.
>
> The other thing that SUX is that it fires up webrick and there is no
> way to stop/start webrick (I use mongrel).  Even if you quit NB it
> leaves WB hanging as an orphaned thread a lot of the time.
>
> On Mar 9, 8:14 am, Bharat Ruparel <rails-mailing-l...@andreas-s.net>

Hello dysinger,
You wrote:
"The rest of the IDE pales in comparison to Eclipse
> Runtime w/ RDT, RadRails, Subclipse.  I like the editor though."
I have not worked with any of them.  Would love to hear from you the
specifics.
Another point:

"> You can switch it off of JRuby on to your regular Ruby & Rails
install
> in the prefs."

I am trying to figure this out.  How do you do that?  If you can share
the steps to do this, that would be great.

Thanks

p.s.  Eclipse foundation just announced that they will be officially
supporting Ruby amongst other scripting languages.  What do you think of
it?
This topic is locked and can not be replied to.