rmaes4
rmaes4

Reputation: 565

How would I change the rails project directory?

I am using Ruby on Windows and when I use rails to create a project it puts the folder in my user directory, I'd like to specify another location. How would I do this?

Upvotes: 0

Views: 1963

Answers (2)

mu is too short
mu is too short

Reputation: 434665

You can specify a full path when you say rails new:

> rails new /some/path/where/you/want/your/app

That should work in Windows just like everywhere else.

You can always say rails --help or rails command --help to get some quick help on using the rails command.

Upvotes: 3

TomDunning
TomDunning

Reputation: 4877

use cd to move to the directory you want it in before generating the project.

Upvotes: 0

Related Questions