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
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:
and here I have finally found the remedy for my problem: the correct command is
(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.