Yes, I know the common way to create a Rails application is

rails new

and this will create a subfolder with your new Rails application called .

This post is because I keep forgetting how to create a new Rails application if I’m already in the subfolder.

If your folder name is the same name you plan to use for your application you can use the command below:

rails new .

Notice the period at the end telling it to use the current directory instead of creating a subdirectory.

If you want to supply a specific application name, you’ll have to do the following:

rails new  /path/to/folder/you/want/to/use

Example:

rails new fileuploader /var/www/apps/files