Creating a New Rails Application

To create a new Rails application, choose Create New Rails App from the Track menu. You can also click on the + symbol in the upper right hand corner of the list of Rails applications.

001_CreateMenuAndButton

Track Magic will ask you to specify the name and location of the new application.

002_CreateAppSaveDialog

Press Save to create the application. After a short delay Track Magic will display the shell output from the command used to create the Rails application.

003_CreateAppShellLog

The new application will be added to the list of Rails applications at the top of the window.

004a_NewAppInList

Specifying the Host for a New Rails Application

Track Magic usually creates new Rails applications using SQLite, the default host for Rails. You can, however, use the Preferences dialog (Track menu) to specify any host you’ve set up in your list of favorites (see Managing Hosts).

005_PreferencesPickHost

Whatever host you choose will be used to create new Rails applications from that point. When the host is anything other than SQLite, an extra step is added to the process of creating a new Rails application. After you press Save to create the application (see above), Track Magic will automatically open the Host Connections dialog (see Host Connection).

006_HostConnection

Confirm that the settings are correct (they will be pre-set for the host specified in the Preferences dialog) and press OK to finish creating the new Rails application. If the new application is connected to a MySQL host and if the Automatically Create Databases option is enabled for that host (see Managing Hosts) Track Magic will automatically create the necessary databases for you, otherwise you’ll need to make separate arrangements to create the SQL database.