db:session:create problem (?) in the depot app

As I wrote in my previous post, I am currently reading/coding the depot example from the Agile Web Development with Rails book. I had one unclear issue so far – maybe someone can help me to find it out: I did something wrong or this is really a typo in the book?

Putting sessions in the database
According to the book, this should be done with

rake db:session:create

However, after entering this command to the console I got:

(in /home/peter/development/src/railsprojects/depot)
rake aborted!
Don't know how to build task 'db:session:create'

After some playing with rake –help, I have found the –tasks switch:

rake --tasks

and here I have finally found the remedy for my problem: the correct command is

rake db:sessions:create

(note the additional ‘s’ character)
Is this because my rake version is too old/too new or this is a typo in the book?

After this modification everything worked again as intended.

34 thoughts on “db:session:create problem (?) in the depot app

  1. Ah, thx for the pointer. I just bought the book, i did not know there is such a good errata already…

  2. Heh, it’s funny that according to my page statistics this is my most popular post – and in fact, as Stefano already pointed out in the first comment, the AWDwR errata had this solution before my post…

  3. ha. I actually misread the book, typed in sessions.. swore a few times.. rolled it back. and then to find out i did it correctly the first time

  4. Pingback: singulair

  5. Pingback: rolex watches

  6. Pingback: Xanax

  7. Pingback: cialis

  8. Pingback: generic cialis

  9. Pingback: Generic Viagra

  10. Pingback: free gay porn

  11. Pingback: ambien

  12. Noting that this thread was started a long time ago, I guess noone is checking anymore? Lots of spam.

    If anyone IS checking it, theres lots of good spam plugins for wordpress. SpamBayes is great, and its open source, great for emails but tricky to setup. Askismet is good, as is Spam Karma.

  13. This is exactly what I expected to find out after reading the title db:session:create problem (?) in the depot app. Thanks for informative article

  14. Recently I discovered this website and have been following along steadily. I felt I should leave my opening comment. I dont know exactly what to write except that Ive loved perusing. Cool website. I will carry on visiting this website frequently. I have also taken your rss feed to get updates.

  15. Window Glass Replacement

    People these tips and instructions on how to withdraw and replace disorganized window spyglass can aid economise you experience, money and endeavour. Internal this document you module conceive information active: * Preparing for the New Window Mirror * Installment New Glasswork * Adding the Closing Touches * Commutation Glassful on Doors

  16. You you could make changes to the post name title Ruby, Rails, Web2.0 » Blog Archive » db:session:create problem (?) in the depot app to something more better for your webpage you write. I loved the the writing nevertheless.

Leave a Reply

Your email address will not be published. Required fields are marked *