Administrate SQLite Databases from RadRails

written November 5 2006 by
Kommen
tagged with
, , , ,
2 Comments so far. Go, post one!
Previous The Rails Way
Nightly and Integratio… Next
Migrations in Ruby on Rails
Exception Notifier - Ruby on Rails plugin
State of Web Development 2006
Install Mongrel on Ubuntu 6.06 Dapper

Recently, when I switched from Ubuntu Dapper Drake to Edgy Eft, I also had to set up my development environment again.
This time I decided to use SQLite3 for Rails development on my notebook instead of MySQL.

I used to administer my databases with phpMyAdmin or with the Data Perspective in RadRails. Now my problem was, that the SQLite JDBC driver which RadRails uses sucks and the Data Perspective wont work.

So I looked for a solution to easily manage the SQLite databases from my projects with RadRails.
Here it is:

Install rSQLiteGUI

rSQLiteGUI is a very simple but useful graphical interface to manage SQLite databases written in Ruby and using GTK2.

To install it, just download the latest version from here and extract the archive to a directory. Make sure rsqlitegui.rb is executable.

Configure RadRails to work with rSQLiteGUI

In RadRails you can define File Associations. So associate the *.db files with rSQLiteGUI:

Done! Now you can view or edit a SQLite database just double clicking on it in the Rails navigator.

2 Comments

Make our day bright and participate!
Permalink to this comment { mitch }
on December 11 2009 (about 15:06 PM)

How do I make the file executable?

Permalink to this comment { mitch }
on December 11 2009 (about 15:06 PM)

How do I make the file executable?