Managing the Rails Environment

The Rails Environment submenu is used to manage the Rails environment for your application.

RailsEnvSubmenu

Required Rails Version

The environment.rb file in a Rails application specifies what version of Rails is required for the application. You can edit this text file manually, of course, but Track Magic can also take care of this for you. The left side of this dialog lists all of the Rails versions installed on your computer. Pick the version required for this application. On the right side of the dialog you can choose whether the specified version must match exactly, or whether older or newer versions of Rails are allowed.

RailsVersionDialog

Freezing a Rails Application

Freezing your application will make a copy of your system-wide gems and unpack them into your Rails app. This allows the Rails app to continue to work even if you install a newer, incompatible, version of Rails on your machine. It also allows you copy the application to a different computer (a server, for example), that may or may not have the same version of Rails gems installed. When an app is frozen it can be used even if the computer it is running does not have the correct version of Rails installed.

To freeze an application using Track Magic simply select the application and choose Freeze from the Rails Environment submenu. Track Magic will freeze the app and display the result:

FreezeResult

Unfreezing a Rails Application

If an application is frozen you can un-freeze it by choosing the Unfreeze command from the Rails Environment submenu. You can do this whether the application was originally frozen using the command line or Track Magic.

Displaying an Application’s “Freeze” Status.

To find out what Rails version an application is frozen to choose the Frozen Version command. If the application is frozen it will display what version of Rails is frozen within the application.

FrozenVersionAlert