1). regarding the book book “agile web development with rails 2nd
edition” , I am now on chapter 8, Task C+: Cart Creation, and I have
encountered a new bug in following the material.
as the book instructs, in order to resolve an migration issue to
display my depot application, I need to clear the session.So as
instructed , i issue the command ;
C:\rails\depot>rake db:sessions:clear
2). what i get is :
(in C:/rails/depot)
rake aborted!
Mysql::Error: #42S02Table ‘depot_development.sessions’ doesn’t exist:
DELETE FRO
M sessions
(See full trace by running task with --trace)
C:\rails\depot>
3). i researched previous postings on this, and found something
interesting from a “Peter Vandenberk” who writes:
From: joe - view profile
Date: Wed, Sep 13 2006 11:10 pm
Email: joe [email protected]
Not yet rated
Rating:
show options
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse | Find messages by this author
Peter Vandenberk wrote:
That syntax is now deprecated in favor of adding the following
declaration in your model file:
3). THIS SOUNDS LIKE A SOLUTION , BUT I AM NOT SURE WHERE TO POST THIS
COMMAND IN THE MODELS. AND I CANT REPLY TO HIS POSTIGN BECAUSE ITS 30
DAYS OLD, AND GOOGLE WONT ALLOW IT.
4). WHAT CAN I DO ? WHY ISNT THE RAKE COMMAND WORKING? WHERE DO I
ISSUE TEH CODE SNIPPET - "INCLUDE RELOADABLE " TO GET IT TO WORK.
1). PLEASE DISREGARD MY LAST REPONSE. TAMMY’S SUGGESTION MADE ME
REALIZE THAT I MISSED THE BEGININNG OF THE SECTION OF TASK C , AND SO
DIDNT FOLLOW SOME OF THE BEGINNING WORK .
I SHOULD HAVE NO MORE PROBLEMS WITH ‘SESSIONS’ ONCE I REVIEW THE
ENTIRE SECTION .
STAY TUNED , AND THANKS …
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.