# Specify alternate project name when creating new rails proj?

**URL:** <https://www.ruby-forum.com/t/specify-alternate-project-name-when-creating-new-rails-proj/114340>\
**Category:** Rails\
**Created:** [September 11, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/specify-alternate-project-name-when-creating-new-rails-proj/114340 "2007-09-11T15:52:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [September 11, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/specify-alternate-project-name-when-creating-new-rails-proj/114340/1 "2007-09-11T15:52:58Z")

</div>

I was just looking over the help file for the rails executable (rails  
–help), but I didn’t see a way to specify a specific project name.

I usually keep all of my projects in a Projects folder, then sub folders  
based on the project name (ex: projects/client/project\_name/ or  
projects/project\_name). In each of these project sub folders I typically  
create additional folders for “files”, “design”, and “web” (for PHP  
projects). I’d like to start using a new “rails” sub folder  
(projects/project\_name/rails) for projects that I’m developing in Rails,  
but I’m worried about any fallout as a result of using “rails” for every  
project name. AFAICT, the only place where the project name is  
explicitly written is in the database.yml file, and if so then I can  
easily override those values once the files have been generated. But I  
wonder if there is a way to specify the project name when I create the  
rails project, such as `rails rails "project_name"`? If not, am I  
correct in my assumption about it only being used to write the database  
file?

For instance, generally in rails you would use:  
C:\Projects\>rails my\_rails\_app  
Which would create a rails project named my\_rails\_app in the Projects/  
folder

But I want to use:  
C:\Projects\my\_rails\_app\>rails rails  
To generate the rails app in the “rails” sub folder within the project  
folder Projects/my\_rails\_app.

So, is there a way to generate the rails content in the “rails”  
subfolder, but specify the project name in addition? Or, is there a way  
to just generate it in the CWD folder, without worrying about a project  
name?
