29 Apr 2013, 22:52
Distorted_pragsmall

Enrique Sánchez (17 posts)

I’ve been reading v. 3.1 of the book (for Rails 4), but by accident I started reading Chapter 9 on v. 3.0 (for Rails 3.2).

I realized of my mistake after I already generated the cart and line_item scaffolds.

What would be the best way to go back, undo the scaffolds and start Chapter 9 fresh?

Thanks!

30 Apr 2013, 20:13
Samr_small_pragsmall

Sam Ruby (584 posts)

rails destroy scaffold Cart
01 May 2013, 16:17
Distorted_pragsmall

Enrique Sánchez (17 posts)

Thanks Sam,

I also had to drop the table created by the scaffold for the line_items, browsing around I found this solution:

http://stackoverflow.com/a/7779954

This seemed to do the trick, but out of curiosity: Is there a better way of doing this?

01 May 2013, 17:16
Samr_small_pragsmall

Sam Ruby (584 posts)

You’ll see when you get to section 10.1. :-)

  You must be logged in to comment