Archive for Ruby on Rails

NetBeans, Ruby and Snow Leopard - automatic Mongrel startup

Recently, NetBeans was not able to start up Mongrel automatically from a Rails project. I had to open up a console and manually start “script/server” - not what I expect when using an IDE.
I thought it was because of Rails 2.3.x - unsupported by Netbeans as I suspected.The actual reason behind it was the update to Ruby 1.8.7 in Snow Leopard!
Make sure to give that info to Netbeans via the “TOOLS” -> “RUBY PLATFORMS” window. Just delete your old Ruby record from the list left (don’t delete JRuby, though) and click the “AUTODETECT” button (red circled below):
Autodetect_Ruby_Platform

After that, you’ll see the new Ruby 1.8.7 (see screenshot below). Click “Close” and voilá! :-)
Ruby 1.8.7 in Netbeans

| Comments

mod_rails out!

To simplify the process of deploying a Rails app, mod_rails is really helpful! Just upload, open your browser and you’re done - like PHP etc.

And it’s free and open source! … and faster than Mongrel (comparison done by the vendor).

I’ll test it later on, though I pretty much like Capistrano ;)

More here (see also Williams message about memory usage and its follow-ups)

Tags:

| Comments

Compile Ruby On Rails

Just a quick post to save someone else’s problems while compiling Rails from source…

I had to compile it from sources since the server I had to deploy the app on was an old SuSE machine for which only outdated Ruby/Rails RPMs existed…

Ruby compiled without problems, and Gem installation was very simple. — But then installing Rails with dependencies always failed with “SSL not installed on this system“.

I found the solution in “comp.lang.ruby” and it is so simple… You only have to compile OpenSSL-Ruby-Extensions (of course you need to have OpenSSL for your system, but I assume that you’ve already figured this out)!

If your Ruby-Source-Dir is /root/ruby-src/ you have to do (as root or with sudo):

cd /root/ruby-src/ext/openssl
ruby extconf.rb
make
make install

That’s all! Enjoy.

| Comments

  • RSS recent del.icio.us posts

  • tools:

  •  

  •  

    StackOverflow Badge: