Problem with blog demo app


#1

http://guides.rubyonrails.org/getting_started_with_rails.html

The command “rake db.create” shown in section “6.1. Running a
migration” is failing as follows:

bash-3.2$ pwd
/Users/jander/work/blog
bash-3.2$ rake db.create --trace
(in /Users/jander/work/blog)
rake aborted!
Don’t know how to build task ‘db.create’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1706:in []' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2018:ininvoke_task’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:ineach’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:instandard_exception_handling’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in
top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:inrun’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:inrun’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/local/bin/rake:19:in `load’
/usr/local/bin/rake:19


#2

try running rake db:migrate
I think the problem is you are using a period instead of a colon

Jason


#3

Thanks, you’re absolutely right! One of the problems of having a very
high resolution screen…:slight_smile:


#4

Maybe db:create?