# Please help Rails project can not be created

**URL:** <https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364>\
**Category:** Rails\
**Created:** [May 24, 2011, 7:38pm UTC](https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364 "2011-05-24T19:38:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [May 24, 2011, 7:38pm UTC](https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364/1 "2011-05-24T19:38:21Z")

</div>

I have just update to ubuntu 11.04.  
since that I can not create a new Rails project.

Mark@Mark-Satellite-A300D:~$ rails new Test  
Can’t initialize a new Rails application within the directory of  
another, please change to a non-Rails directory first.  
Type ‘rails’ for help.

---

<div class="post-metadata">

**Author:** ![hoboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hoboy](https://www.ruby-forum.com/u/hoboy)\
**Post date:** [May 24, 2011, 7:45pm UTC](https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364/2 "2011-05-24T19:45:57Z")

</div>

On Tue, May 24, 2011 at 5:38 PM, hoboy Hoboy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I have just update to ubuntu 11.04.  
> since that I can not create a new Rails project.
> 
> Mark@Mark-Satellite-A300D:~$ rails new Test  
> Can’t initialize a new Rails application within the directory of  
> another, please change to a non-Rails directory first.  
> Type ‘rails’ for help.
> 
> As the error message says, you are already in a Rails project directory.  
> Go back and try again.

---

<div class="post-metadata">

**Author:** ![hoboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hoboy](https://www.ruby-forum.com/u/hoboy)\
**Post date:** [May 24, 2011, 7:47pm UTC](https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364/3 "2011-05-24T19:47:11Z")

</div>

That error message seems pretty clear. You’re already in a directory  
that is  
a rails application.

Also just as another note, “Test” is not a good name to give your  
application. You should avoid using keywords like that as the name of  
your  
application.

---

<div class="post-metadata">

**Author:** ![hoboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hoboy](https://www.ruby-forum.com/u/hoboy)\
**Post date:** [May 24, 2011, 8:39pm UTC](https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364/4 "2011-05-24T20:39:44Z")

</div>

On May 24, 7:07pm, hoboy Hoboy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> You are telling me that when I login into ubuntu my I go directly on  
> Mark@Mark-Satellite-A300D:~$.  
> you are telling that this is an rails directory ?  
> that does not make a sense

Well at least rails thinks it’s a rails app. Maybe you previously  
generated a rails app in your home directory (rather than in a  
subfolder) at some previous point in time, or moved the contents of a  
rails app into your home folder

Fred

---

<div class="post-metadata">

**Author:** ![hoboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hoboy](https://www.ruby-forum.com/u/hoboy)\
**Post date:** [May 24, 2011, 9:32pm UTC](https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364/5 "2011-05-24T21:32:21Z")

</div>

This is likely what’s happening. WHat’s the output of the following  
commands?

ls -l  
which rails

---

<div class="post-metadata">

**Author:** ![hoboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hoboy](https://www.ruby-forum.com/u/hoboy)\
**Post date:** [May 24, 2011, 8:07pm UTC](https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364/6 "2011-05-24T20:07:53Z")

</div>

Tim S. wrote in post #1000680:

> That error message seems pretty clear. You’re already in a directory  
> that is  
> a rails application.
> 
> Also just as another note, “Test” is not a good name to give your  
> application. You should avoid using keywords like that as the name of  
> your  
> application.

You are telling me that when I login into ubuntu my I go directly on  
Mark@Mark-Satellite-A300D:~$.  
you are telling that this is an rails directory ?  
that does not make a sense

---

<div class="post-metadata">

**Author:** ![hoboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hoboy](https://www.ruby-forum.com/u/hoboy)\
**Post date:** [May 24, 2011, 10:29pm UTC](https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364/7 "2011-05-24T22:29:14Z")

</div>

Tim S. wrote in post #1000707:

> This is likely what’s happening. WHat’s the output of the following  
> commands?
> 
> ls -l  
> which rails

luc@luc-Satellite-A300D:~$ ls -l  
total 21604  
drwxr-xr-x 3 luc luc 4096 2011-05-24 20:15 Aptana Studio 3  
Workspace  
drwxr-xr-x 2 luc luc 4096 2011-03-31 15:42 bea  
drwxr-xr-x 5 luc luc 4096 2011-04-10 12:08 config  
drwxr-xr-x 2 luc luc 4096 2011-03-04 23:20 db  
drwxr-xr-x 2 luc luc 4096 2011-05-24 20:25 Desktop  
drwxr-xr-x 8 luc luc 4096 2011-05-24 18:09 DEVS  
drwxr-xr-x 2 luc luc 4096 2011-03-19 19:14 doc  
drwxr-xr-x 3 luc luc 4096 2011-05-22 13:27 Documents  
drwxr-xr-x 4 luc luc 4096 2011-05-24 18:08 Downloads  
-rw-r–r-- 1 luc luc 179 2011-02-28 18:13 examples.desktop  
drwxr-xr-x 8 luc luc 4096 2011-04-21 19:15 glassfish-3.0.1  
drwxr-xr-x 8 luc luc 4096 2011-04-21 18:42 glassfish-3.1  
drwxr-xr-x 4 luc luc 4096 2011-03-31 14:56 IdeaProjects  
drwxr-xr-x 3 luc luc 4096 2011-03-31 15:50 jdeveloper  
drwxr-xr-x 2 luc luc 4096 2011-03-31 09:11 jedit  
drwxr-xr-x 3 luc luc 4096 2011-03-04 23:20 lib  
drwxr-xr-x 2 luc luc 4096 2011-03-04 23:20 log  
drwxr-xr-x 2 luc luc 4096 2011-05-24 20:16 lucRails  
drwxr-xr-x 3 luc luc 4096 2011-05-24 20:26 lucworkspace  
drwxr-xr-x 2 luc luc 4096 2011-02-28 18:26 Music  
drwxr-xr-x 22 luc luc 4096 2011-04-21 19:14 netbeans-6.9.1  
drwxr-xr-x 22 luc luc 4096 2011-04-21 18:52 netbeans-7.0  
drwxr-xr-x 2 luc luc 4096 2011-05-24 20:29 NetBeansProjects  
drwxr-xr-x 3 luc luc 4096 2011-03-31 15:39 Oracle  
drwxr-xr-x 2 luc luc 4096 2011-02-28 18:26 Pictures  
drwxr-xr-x 5 luc luc 4096 2011-03-04 23:20 public  
drwxr-xr-x 2 luc luc 4096 2011-02-28 18:26 Public  
drwxr-xr-x 25 luc luc 12288 2011-05-22 17:49 ruby-1.9.2-p0  
-rw-r–r-- 1 luc luc 10787899 2011-05-22 17:07 ruby-1.9.2-p0.tar.gz  
drwxr-xr-x 24 luc luc 12288 2011-05-22 17:41 ruby-1.9.2-p180  
-rw-r–r-- 1 luc luc 11158935 2011-05-22 17:39 ruby-1.9.2-p180.tar.gz  
drwxr-xr-x 3 luc luc 4096 2011-04-10 12:08 script  
drwxr-xr-x 2 luc luc 4096 2011-02-28 18:26 Templates  
drwxr-xr-x 7 luc luc 4096 2011-03-04 23:20 test  
drwxr-xr-x 6 luc luc 4096 2011-03-04 23:20 tmp  
drwxr-xr-x 2 luc luc 4096 2011-05-24 20:13 untitled folder  
drwxr-xr-x 3 luc luc 4096 2011-03-04 23:20 vendor  
drwxr-xr-x 2 luc luc 4096 2011-02-28 18:26 Videos  
drwxr-xr-x 3 luc luc 4096 2011-03-04 19:54 workspace  
drwxr-xr-x 3 luc luc 4096 2011-04-16 17:46 workspaces

luc@luc-Satellite-A300D:~$ which rails  
/home/luc/.rvm/gems/ruby-1.9.2-p180/bin/rails  
luc@luc-Satellite-A300D:~$

---

<div class="post-metadata">

**Author:** ![hoboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hoboy](https://www.ruby-forum.com/u/hoboy)\
**Post date:** [May 24, 2011, 10:45pm UTC](https://www.ruby-forum.com/t/please-help-rails-project-can-not-be-created/207364/8 "2011-05-24T22:45:59Z")

</div>

On 24 May 2011 21:29, hoboy Hoboy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Workspace  
> drwxr-xr-x 2 luc luc 4096 2011-03-31 15:42 bea  
> drwxr-xr-x 5 luc luc 4096 2011-04-10 12:08 config

That looks like a bit of Rails project

> drwxr-xr-x 2 luc luc 4096 2011-03-04 23:20 db

and that

> drwxr-xr-x 2 luc luc 4096 2011-05-24 20:25 Desktop  
> drwxr-xr-x 8 luc luc 4096 2011-05-24 18:09 DEVS  
> drwxr-xr-x 2 luc luc 4096 2011-03-19 19:14 doc

yup

> drwxr-xr-x 3 luc luc 4096 2011-05-22 13:27 Documents  
> drwxr-xr-x 4 luc luc 4096 2011-05-24 18:08 Downloads  
> -rw-r–r-- 1 luc luc 179 2011-02-28 18:13 examples.desktop  
> drwxr-xr-x 8 luc luc 4096 2011-04-21 19:15 glassfish-3.0.1  
> drwxr-xr-x 8 luc luc 4096 2011-04-21 18:42 glassfish-3.1  
> drwxr-xr-x 4 luc luc 4096 2011-03-31 14:56 IdeaProjects  
> drwxr-xr-x 3 luc luc 4096 2011-03-31 15:50 jdeveloper  
> drwxr-xr-x 2 luc luc 4096 2011-03-31 09:11 jedit  
> drwxr-xr-x 3 luc luc 4096 2011-03-04 23:20 lib

curiouser and curiouser

> drwxr-xr-x 2 luc luc 4096 2011-03-04 23:20 log

and again

> drwxr-xr-x 2 luc luc 4096 2011-05-24 20:16 lucRails  
> drwxr-xr-x 3 luc luc 4096 2011-05-24 20:26 lucworkspace  
> drwxr-xr-x 2 luc luc 4096 2011-02-28 18:26 Music  
> drwxr-xr-x 22 luc luc 4096 2011-04-21 19:14 netbeans-6.9.1  
> drwxr-xr-x 22 luc luc 4096 2011-04-21 18:52 netbeans-7.0  
> drwxr-xr-x 2 luc luc 4096 2011-05-24 20:29 NetBeansProjects  
> drwxr-xr-x 3 luc luc 4096 2011-03-31 15:39 Oracle  
> drwxr-xr-x 2 luc luc 4096 2011-02-28 18:26 Pictures  
> drwxr-xr-x 5 luc luc 4096 2011-03-04 23:20 public

and again

> drwxr-xr-x 2 luc luc 4096 2011-02-28 18:26 Public  
> drwxr-xr-x 25 luc luc 12288 2011-05-22 17:49 ruby-1.9.2-p0  
> -rw-r–r-- 1 luc luc 10787899 2011-05-22 17:07 ruby-1.9.2-p0.tar.gz  
> drwxr-xr-x 24 luc luc 12288 2011-05-22 17:41 ruby-1.9.2-p180  
> -rw-r–r-- 1 luc luc 11158935 2011-05-22 17:39 ruby-1.9.2-p180.tar.gz  
> drwxr-xr-x 3 luc luc 4096 2011-04-10 12:08 script

It is getting mighty suspicious

> drwxr-xr-x 2 luc luc 4096 2011-02-28 18:26 Templates  
> drwxr-xr-x 7 luc luc 4096 2011-03-04 23:20 test

yet more

> drwxr-xr-x 6 luc luc 4096 2011-03-04 23:20 tmp

that one could be real I suppose

> drwxr-xr-x 2 luc luc 4096 2011-05-24 20:13 untitled folder  
> drwxr-xr-x 3 luc luc 4096 2011-03-04 23:20 vendor

That one is bit of a killer.

It certainly looks like you have accidentally created a rails app in  
the home folder at some point. There is no app directory but perhaps  
you have already removed that one. I suggest looking in all the  
directories above to make sure they do not contain useful data and if  
they do not then removing them.

Colin
