ActiveBlog

Komodo 4.1 Rails Projects: Bug Fix Alert
by

, May 24, 2007

With our main QA/support dude on vacation, I'm seeing a couple of repeated issues in the Rails project. Here's how to resolve them. First, please download a fixed version of "Ruby on Rails.kpf" from our support site at http://support.activestate.com/forum-topic/fixed-rails-project-templ (download...

With our main QA/support dude on vacation, I'm seeing a couple of repeated issues in the Rails project. Here's how to resolve them.

First, please download a fixed version of "Ruby on Rails.kpf" from our support site at http://support.activestate.com/forum-topic/fixed-rails-project-templ

(download here: http://support.activestate.com/files/Ruby%20on%20Rails.kpz )

If you run the current project template in an existing Rails project it will overwrite existing
database.yml, and helper files. You don't want that. The fix checks to see if you're trying to write to an existing Rails project area. If so, you get the new project tools, but nothing is overwritten. This is probably what you want.

After the download, you'll need to figure out where to put the replacement "Ruby on Rails.kpz" file:

  • Windows and Linux: <install dir>/lib/support/default-project-templates/Common/Ruby on Rails.kpz
  • OS X: .../Komodo IDE 4.1.app/Contents/SharedSupport/default-project-templates/Common/Ruby on Rails.kpz

Feel free to save the existing .kpz file in a temporary area if you want to play it safe, and then copy the new file over it.

The second issue is telling Komodo which Ruby to use. This is a particular problem on current versions of Mac OS X, which ship with version 1.8.2 in /usr/bin/ruby (anyone still running Jaguar is unlikely to be using Rails, so we can ignore that platform). Leave that version of ruby alone. Something in the system might be depending on it (though I can't imagine what). You've probably already done a fair bit of work to install a working suite of ruby+gem+rails+mysql on the Mac. Now you need to tell Komodo where this version of Ruby lives.

In Komodo, run preferences and select Languages|Ruby and point Komodo to the "Default Ruby Interpereter" to use. You could also change your environment PATH variable to point to the new location first, but I'm seeing that this doesn't always work, for reasons I'm not completely sure of yet. Specifying the location does work. I've also logged a bug calling for a new configuration check item on the startup page.

Hope this all helps. If not, please check in at http://support.activestate.com/forums/komodo-support.

Subscribe to ActiveState Blogs by Email

Share this post: