Archive for June, 2006

Typo and Lucid theme error

Antonio Cangiano June 29th, 2006

The Typo theme ‘Lucid’ seems to generate an error when used with the latest version (trunk) of Typo. In order to solve this, simply replace the following code in your /typo/themes/lucid/layouts/default.rhtml file:

<%= render_component(:controller => 'sidebars/sidebar',
:action => 'display_plugins') %>

with

<% benchmark "BENCHMARK: layout/sidebars" do %>
  <%= render_sidebars %>
<% end %>

This should fix it. ;-)

Starter Toolkit for DB2 on Rails Update

Antonio Cangiano June 15th, 2006

We just released an update for the Starter Toolkit for DB2 on Rails.
A few changes:

  • Compatible with the other adapters. It solves a nasty issue which used to previously cause problems when using other adapters;
  • If a schema is omitted, the username is now used by default (thanks for the suggestion, Edd );
  • Improved error messages. In most cases, error message now provide DB2 CLI error codes and messages;
  • Better index handling.

Please update your system (the first point of the list above is quite critical). Just click on All Programs → DB2 on Rails → Check for Updates.

How do you do a quick manual update?

If you have already installed the first release of DB2onRails, you can just download DB2onRails_V1.1_Source.zip (160 Kb) and replace the file ibm_db2_adapter.rb in

C:\ruby\lib\ruby\gems\1.8\gems\activerecord-1.14.2\

lib\active_record\connection_adapters

(or equivalent on your system) with this new one.

You can join us in the alphaWorks forum

Download the Starter Toolkit for DB2 on Rails

Antonio Cangiano June 5th, 2006

You can now download the Starter Toolkit for DB2 on Rails from alphaWorks.

Enjoy using Rails and DB2 ;-)