Creating a New Rails Project
You can create a new Rails project using the
or the .
If you have an existing project in a Subversion (SVN) repository,
you can use it to create a new 3rdRail project.
To create a new Rails project using the New Rails Project Wizard
-
Open the
New Rails Project Wizard
-
Set the following Project Options:
-
Name the project.
-
Set the project directory. Use the default location or click
to navigate to the desired location.
-
Choose the .
The list is dynamically populated based on your system configuration.
-
Choose the .
The default depends on your OS and Rails version.
CodeGear recommends that you try
using InterBase.
-
Choose the :
If the interpreter is not configured
select .
The Preferences Installed Interpreters dialog lists the interpreters.
If the list is empty, select
If you installed Ruby as part of your 3rdRail installation process,
the search results will show ruby.exe. Make sure it is checked,
and click OK.
-
Click .
The lists the new project.
The
opens
and shows the commands used to create the project and the resulting files.
Clicking on any of the hyperlinked files
will open that file in the editor area.
The server is automatically configured based on the Project Options settings.
To create a new project using the Project Commander
-
Click
.
-
From the prompt type:
Rails {new project name}
-
3rdRail creates the new project.
-
Use CRTL+SPACE
to access Rails options.
To create a new project using an existing project in SVN
-
Use the wizard to bring an existing project into 3rdRail.
This is helpful when you have multiple developers on the same project, using the same source.
If you have an existing Rails project that is not under source control and you want to import
it to 3rdRail, see
Importing a Rails Project.
-
Click
-
Check
-
Enter the URL for the project, such as
http://redmine.rubyforge.org/svn/,
and click
-
The wizard shows the SVN directory structure.
Select the folder you want to check out
and click
-
For a new project in 3rdRail, leave the default as:
Check out as a project configured using the New Project Wizard.
You can choose which SVN revision to use, or by default get the head revision.
Click
-
The New Project wizard opens.
Choose
-
The New Rails Project wizard opens.
Name the project and click
If you have not
configured a Ruby interpreter,
you will be prompted to do so.
-
3rdRail first creates a default Rails project, then copies in the SVN files.
Depending on your project, some of the SVN files will need to overwrite
the new default files. If you get a prompt asking to confirm overwrites,
click
-
3rdRail completes the checkout,
and the displays your new project.
The shows the Rails commands and hyperlinks to the new files.
Writing Rails Applications
Configuring the Ruby Interpreter
CodeGear brand
and product names are service marks, trademarks or registered trademarks of Borland Software
Corporation in the United States and other countries.