Tuesday, May 20, 2008

rails console not working in netbeans 6.1

Changing the last line of \ruby\lib\ruby\gems\1.8\gems\rails-2.0.2\lib\commands\console.rb

from

exec "#{options[:irb]} #{libs} --simple-prompt"

to

exec "#{irb} #{libs} --noreadline --simple-prompt"

helps.

This problem is known since rails-1.1.2 or even earlier versions.

debugging rails in netbeans 6.1 on windows

You need these gems, not the latest releases and it should work.
* ruby-debug-base (0.9.3)
* ruby-debug-ide (0.1.9)

rubygems in netbeans behind authenticated proxy

For this to work in netbeans, don't enter any proxy in netbeans. Set environment variables for
HTTP_PROXY, HTTP_PROXY_USER, HTTP_PROXY_PASS and click noproxy in netbeans and it will work.

rubygems behind an authenticated proxy

so setting the --http-proxy variable on the command line including username and password seemed buggy.
I got it to work in windows by running


set HTTP_PROXY=http://proxy:port
set HTTP_PROXY_USER=username
set HTTP_PROXY_PASS=password

gem install rails --include-dependencies

pause

switch JRuby to Ruby in netbeans 6.1

So this took a while because after adding the ruby interpreter in Platform Manager, you also have to set the properties of your project to use the newly installed interpreter.

About Me

Ben
skilled in asp.net, a little java, and now trying some rails. fun stuff
View my complete profile