Please help Rails project can not be created

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

[email protected]:~$ 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.

On Tue, May 24, 2011 at 5:38 PM, hoboy Hoboy [email protected]
wrote:

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

[email protected]:~$ 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.

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.

On May 24, 7:07pm, hoboy Hoboy [email protected] wrote:

You are telling me that when I login into ubuntu my I go directly on
[email protected]:~$.
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

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

ls -l
which rails

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
[email protected]:~$.
you are telling that this is an rails directory ?
that does not make a sense

Tim S. wrote in post #1000707:

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

ls -l
which rails

[email protected]:~$ 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

[email protected]:~$ which rails
/home/luc/.rvm/gems/ruby-1.9.2-p180/bin/rails
[email protected]:~$

On 24 May 2011 21:29, hoboy Hoboy [email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs