OK I googled about this but didn't find an answer.
I'm trying to get started with the most basic of basic apps 'hello
world'
I start from the public directory
/var/www/localhost/htdocs/rails_app/public/
by doing
# rails -d mysql MyProject
and it creates lot of files/folders then I change to the new project
# cd MyProject
then I do
# rake db:create
(in /var/www/localhost/htdocs/rails_app/public/MyProject)
rake aborted!
Don't know how to build task 'db:create'
(See full trace by running task with --trace)
So I do
# rake db:create --trace
(in /var/www/localhost/htdocs/rails_app/public/MyProject)
rake aborted!
Don't know how to build task 'db:create'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1634:in `'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1930:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/usr/bin/rake:16:in `load'
/usr/bin/rake:16
My OS is gentoo linux hardened with grsec:
Linux version 2.6.23-hardened-r7
rails versions is:
[I--] [ ] dev-ruby/rails-1.2.6 (1.2)
shows you if the db:create task is present at all. If it is, make sure
the settings in config/database.yml are configured correctly for your
MySQL installation (although admittedly "Don't know how to build task
'db:create'" doesn't really point in that direction).
That should work for a new version of rails. Perhaps the Wiki Tutorial
should specify which version of rails it is, and have an alternate
page for the older method.
That should work for a new version of rails. Perhaps the Wiki Tutorial
should specify which version of rails it is, and have an alternate
page for the older method.
I'm on 1.2.6 and will stay that way for at least six months longer. I've got a large internal app that works, and so have little reason to make any sudden moves.
I'm definitely a tortoise when it comes to this type of thing. I'll let all the wise hares figure out 2, and then when it's all blindingly obvious I'll come plodding along.
I'm on gentoo and they are a little behind in unmasking 2.02
I'm on 1.2.6 and will stay that way for at least six months longer.
I've got a large internal app that works, and so have little reason to
make any sudden moves.
I'm definitely a tortoise when it comes to this type of thing. I'll
let all the wise hares figure out 2, and then when it's all blindingly
obvious I'll come plodding along.
One of the main reasons I installed RoR was to use Typo as a blog as
every other blog on gentoo seems to be < version 1, for systems with X,
or have security issues (for instance wordpress is hard-masked). Then
after downlaod there is the install instructions stating needs >2.0
OTOH I notice that one of the first presentations here
is writing a blog in 15 minutes, so that may be my next task, write my
own while waiting for gentoo to catch up and be able to use typo later
maybe.