Hi,

Both commands (rake and rails) create a full new application directory
structure. So

~/$rails blog -d mysql

Creates two directories populated with new app sructure, one called
"blog" and one called "mysql"

~/blog$rake db:create

Creates a new app structure called "db:create".

I've also tried

~/$rails blog -dmysql

This gives invalid option errors.

Versions:
rake 0.8.1
ruby 1.8.7
rails 2.1.0

These were all installed using the Ubuntu package manager, but
previously I have installed using gems, but still had the same
problem.

Ubuntu is running inside a virtual machine (VirtualBox), but I can't
see why that should be a problem (at least not of this nature)...?

Thanks,
Greg



On Jul 7, 1:21 am, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> Greg wrote:
> > Hi,
>
> > I've been struggling to get Rails working properly on my Ubuntu box
> > for a couple of weeks now - driving me mad...
>
> > The current problem is that the "rails" and "rake" commands seem to be
> > wrongly intrepreting the command-line. For example, if I type:
>
> > ~/$rails blog -d mysql
>
> > What I get is a directory called "blog" with a bunch of stuff in it
> > AND a directory called "mysql" with the same bunch of stuff!
>
> Try -dmysql without the space and see what happens.
>
>
>
> > also, if after setting up database.yml correctly, then do
>
> > ~/blog$rake db:create
>
> > what I get is yet another directory full of rubbish created also
> > called "db:create"! Gaaaghhh!
>
> And what is in that directory?  That might help diagnose the problem.
>
> Also, what versions of Ruby, Gem, and Rake do you have installed?
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to