Rails recently went to 2.0 and the jruby that comes with
netbeans does not seem to like it. Thus, ugliness:
- Install NetBeans 1.0.1. You might have to erase
~/.netbeans*
- Go to Tools->Plugins then update. Quit.
- Download and install jruby 1.0.3.
- Start netbeans then create a new ruby on rails project:
- Select jRuby but set it to use the 1.0.3 binary.
- Update to rails 2.0
- Install JRuby openssl support.
- Select javaDB if you want to use derby (didn't work well for me: could not update).
- Copy
derby.jar
from glassfish
subdir to netbeans/ruby1/jruby/lib
(the
database.yml file will remind you of this step.)