RadRails is switching to Ruby-debug

According to Kyle, one of the tireless developer of Rad Rails, he is working on incorporating ruby-debug.

For more details about ruby-debug, see my write up about it.

The command line is great, and there are times when you are working on a remote server where nothing else will do. But having the ability to set breakpoints at the click of the mouse, see your variables in a separate pane, see a lot more of your source code is something quite convenient.

And with the added speed of ruby-debug, this should make debugging in Rad Rails something you can’t afford not to use.

This is very welcome news and I look forward to use it!

RadRails 0.6.1 released

a few bug fixes and a few improvemens. Especially switching between view and controller now suppors RHTML, RXML and RJS.

If you’ve created test scripts with 0.6, be sure to delete the scripts and regenerate them. See details on radais.org

Download 0.6.1

I recommand you use the site update as I explained in the 0.6 announcement. This greatly simplifies updates.

Adding the Ruby builder to your RadRails project

To add the ruby validator to your project, open your .project file (at the root of your project).

And add:

<buildCommand>
    <name>org.rubypeople.rdt.core.rubybuilder</name>
    <arguments>
    </arguments>
</buildCommand>

inside the

element.

Refresh eclipse, and wait for it to rebuild everything. Then your files will be checked for correct ruby syntax everytime you save. You will see a little marker everytime there is an error.

Here’s the complete .project file:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>typo</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
            <buildCommand>
                    <name>org.rubypeople.rdt.core.rubybuilder</name>
                    <arguments>
                    </arguments>
            </buildCommand>
    </buildSpec>
    <natures>
            <nature>org.radrails.rails.ui.railsnature</nature>
    </natures>
</projectDescription>

Switching the nature of a project to RadRails

Open your .project file, and replace the element with

<natures>
    <nature>org.radrails.rails.ui.railsnature</nature>
</natures>

Here’s how my project looks like

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>typo</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
    </buildSpec>
    <natures>
        <nature>org.radrails.rails.ui.railsnature</nature>
    </natures>
</projectDescription>

Then either refresh your project or restart eclipse/RadRails. The Project icons should now have the little decorator with the Rails logo.

RadRails 0.6 released

Kyle just announced the release of RadRails 0.6 (thank you Kyle).

If you are not familiar with RadRails, RadRails is an eclipse based Rails IDE, with syntax checking, testing, WEBrick and LightTPD support, debugging.

Highlights:

  • rhtml editor
  • Keyboard shortcut to switch between the view and its controller (Ctrl+Shift+V)
  • Integrated testing support (Yeahh!)
  • Preliminary LightTPD support

Read the Announcement.

Download

Tonight I upgraded and everything went smoothly using the site updates method (Help Mennu -> Software Updates… -> Find and Install…).

Love the shortcut to switch between view and controller. One of those little things that help a great deal :)