Forum: Ruby on Rails Please help Rails project can not be created

Bfcff54193f2a15d50b92345fcde3bf1?d=identicon&s=25 hoboy Hoboy (hoboy)
on 2011-05-24 19:38
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.
334ce47b13120799a35dd17914426323?d=identicon&s=25 Jatin Kumar (silver-spoon)
on 2011-05-24 19:45
(Received via mailing list)
On Tue, May 24, 2011 at 5:38 PM, hoboy Hoboy <lists@ruby-forum.com>
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.
08bbdb4705bfab08daa3a7d607573490?d=identicon&s=25 Tim Shaffer (Guest)
on 2011-05-24 19:47
(Received via mailing list)
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.
Bfcff54193f2a15d50b92345fcde3bf1?d=identicon&s=25 hoboy Hoboy (hoboy)
on 2011-05-24 20:07
Tim Shaffer 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
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2011-05-24 20:39
(Received via mailing list)
On May 24, 7:07pm, hoboy Hoboy <li...@ruby-forum.com> 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
08bbdb4705bfab08daa3a7d607573490?d=identicon&s=25 Tim Shaffer (Guest)
on 2011-05-24 21:32
(Received via mailing list)
This is likely what's happening. WHat's the output of the following
commands?

ls -l
which rails
Bfcff54193f2a15d50b92345fcde3bf1?d=identicon&s=25 hoboy Hoboy (hoboy)
on 2011-05-24 22:29
Tim Shaffer 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:~$
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2011-05-24 22:45
(Received via mailing list)
On 24 May 2011 21:29, hoboy Hoboy <lists@ruby-forum.com> 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
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.