Instant Rails 1.7

2008 January 3
by hawesome

Hello,

I have switched to Instant Rails 1.7 (download from http://rubyforge.org/frs/?group_id=904) and things are working as the book says they should, with the exception being that mongrel is run by default, rather than lighttpd. Of course, I’m only on page 4 so far.

You can use SQL Developer to view your MySQL database tables by doing the following:

1. Place the MySQL JDBC driver somewhere on your computer. You can get the jar file by unzipping: “W:/Java/Tools/MySQL/mysql-connector-java-5.1.5.zip“.

(2) Run SQL Developer.

(3) Tell SQL Developer where to find the MySQL JDBC driver.
- Choose “Tools | Preferences” from the main menu.
- Choose “Database | Third Party JDBC Drivers” from the tree control on the left.
- Click the “Add Entry” button and select the mysql-connector-java-5.1.5-bin.jar file.

(3) Create a new connection with the following values:
- Connection Name: [anything you want]
- User Name: root
- Password: [leave blank]

Select the MySQL tab:
- Hostname: localhost
- Port: 3306

-Arc

One Response leave one →
  1. 2008 January 3

    If anyone hasn’t worked on getting their Rails environment up and running in Windows yet I would suggest using the WebBrick server that comes with Rails and not using InstantRails’ default Mongrel/Apache server. To use the WebBrick server go to your application’s root directory and type “ruby script/server webrick”. In the book they just have to enter “ruby script/server” but InstantRails seems to have somehow set the default server to Mongrel so you need to specify that you want to use WebBrick.

    - dabootski

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS