I figured out how to rollback with git from this website:

http://www-cs-students.stanford.edu/~blynn/gitmagic/ch02.html#_advanced_undo_redo

$ git log
commit 1964b4f78d82da730ccf5fc6d1ba7d1e1b5ae266
Author: me
Date:   Wed Apr 22 18:57:48 2009 -0600

    End of chapter 7, p. 96

commit a262fdcd503766cae2c5643923180480151ff669
Author: me
Date:   Tue Apr 21 03:28:49 2009 -0600

    Initial import
/depot$ git reset --hard 1964b4f78d82da730ccf5fc6d1ba7d1e1b5ae266
HEAD is now at 1964b4f End of chapter 7, p. 96
$

However, apparently doing a rollback doesn't delete the new files you 
created since the last commit.  So, I also deleted the migration file 
for creating the sessions table.

Then I started over with the steps at the beginning of the chapter. 
After adding all the necessary code, I clicked on the add to cart 
button, and I get the same error message:

http://localhost:3000/store/add_to_cart/5

   We're sorry, but something went wrong.
   We've been notified about this issue and we'll take a look at it 
shortly.

So it seems like there is something wrong with my database.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to