- On the main menu, choose New Project button in the Welcome screen. Create New Project dialog box opens. , or click the
- In the Create New Project dialog box, specify the project name and location.
In the Project type drop-down list, select either Rails application, or Rails mountable engine.
Click OK. The Rails Application Settings dialog box opens.
If the new project is being created in a directory that already contains a Rails application, RubyMine suggests you to create a new application, or use the existing one.
- In the Rails Application Settings dialog box, specify the following:
- In the Ruby Interpreter drop-down list, select the Ruby SDK you want to use. If
the desired Ruby interpreter is not found in the list,
you can specify a new one by clicking , and locating Ruby SDK in the file system.
- In the Rails Version drop-down list, select the desired Rails version from those
installed on your machine.
If RubyMine cannot detect Rails installation, click the browse button , and select the desired Rails version to be installed. RubyMine downloads and installs the corresponding rails gem.
- If your choose Rails 2.3 or higher, you can specify an application template.
To do that, just type the fully qualified path to the desired template file in the Rails Template
field, or click the ellipsis button, and locate the template file in the file system.
For the elder Rails versions, this field is disabled.
- Specify which database will be used for your new application. By default, RubyMine suggests using
SQLite3. If you want to use a different database, select the Preconfigure for the selected database
check box, and choose the desired database from the drop-down list.
- Specify whether RubyMine should generate the testing directory structure and template files. If you leave the check box cleared, which is suggested by default, RubyMine will produce the test folder, marked as a test root , with all the necessary infrastructure. If you select this check box, the testing infrastructure will not be generated.
Click OK. The generator executes and displays its output in the console of the Run tool window.
- In the Ruby Interpreter drop-down list, select the Ruby SDK you want to use. If the desired Ruby interpreter is not found in the list, you can specify a new one by clicking , and locating Ruby SDK in the file system.
- Configure project content roots, Ruby SDK and gems.
- For further development, the daemon of your database must be running in the background.
- If you want to preview your Rails application output as you work, you have to launch the Rails server.