Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Configuring Mint for Typo (Ruby on Rails)

Shaun Inman
Mint/Pepper Developer
Posted on Jan 28, '07 at 02:20 am

This howto was originally contributed by Ryan

If you are running Typo, the odds are good you know how this works. However, I’m posting this as a reference for those who may not.

Setting up the database

You can lookup your database values in your typo directory under config/database.yml. The database settings you are looking for are the ones under production, which begins on about line 15. It will look like this:

  adapter: mysql
  database: DB_NAME
  host: DB_HOST
  username: DB_LOGIN
  password: DB_PASSWORD

You want to use these values and edit the config/db.php file in your mint directory. Insert the values as follows:

$Mint = new Mint (array
    'server'    => 'DB_HOST',
    'username'  => 'DB_LOGIN',
    'password'  => 'DB_PASSWORD',
    'database'  => 'DB_NAME',
    'tblPrefix' => 'mint_'

Adding the javascript

  1. Once you have your database setup, you need to insert the javascript into your page. Go into your typo directory, and look in themes/<your theme name>/layouts. The default theme name is “azure”.

  2. Open default.rhtml for editing

  3. Around line 16, right before the </head> tag, insert the following:

Save your file, and empty your typo cache using the admin interface.

Congratulations. Your typo blog is now minty fresh.

You must be logged in to reply. Login above or create an account

Hey there, I have officially suspended sales and support of Mint. The Create Account, Add License, Transfer License, and Contact forms have been disabled. Existing customers may continue to login and download Mint.

More info Continue