Ruby on Rails Project Properties: Rails Options
See Also
Use this dialog box to set the Rails options for a Ruby on Rails project. You open the dialog box by right-clicking the main project node in the Projects window, choosing Properties, and then selecting the Rails node in the Project Properties dialog box.
You can set the following options:
- Ruby Platform. Select the platform that you will use for the project from the drop-down list. To use a platform other than what is displayed in the list, click Manage to open the Platform Manager.
-
Configuration. Select the configuration for
the desired Rails project settings. To create a new configuration,
click New, type a Profile Name, and click OK. You can then modify
the settings for that profile, such as specifying
a different server or Rails environment. You can switch
a project's current configuration using this drop-down list, or by right-clicking
the project node and choosing Set Configuration from the pop-up menu.
- Server. Select the server that you want to use for the application.
-
Server Port Number. For the WEBrick and Mongrel servers,
use this text box to specify the starting point for
finding a free port. When the specified
port is available, the IDE uses that port for running the server,
otherwise the IDE increments the port by one until it finds a free port.
- Rails Environment. Select which mode you want to
run the application in: development, production, test, or a custom
environment that you have created in the
config/environments folder. You can also type
a value.
- URL. Enter the relative URL. The value you specify in the field is concatenated
with host name and port number to form the URL passed to the browser when running/debugging a Rails app.
For example, if you have a "localhost" server running on port 3000 and type users/list
into the URL field, the IDE passes the URL http://localhost:3000/users/list to the browser.
- Encoding. Sets the character encoding for your application, which is used by the IDE when writing files to disk. The default encoding is UTF-8.
- Rake Arguments. Passes custom flags to Rake when run from the IDE.
- See Also
- Working With NetBeans Ruby
Legal Notices