Re: Beginning Ruby on Rails E-Commerce : Errata Help

John Ivanoff
2006-11-20T21:56:58Z

I''m almost there.
did you gett errors when running the test on page 101?

ruby test/integration/book_test.rb

it ran for me before adding the select and option tags, now I
get
>> expected tag, but no tag found matching {:content=>"Ruby for
Dummies", :tag=>"td"} in: ...(html code for the page)
when i run it.

I''ve copied the code fron the source and it still fails.
it works when i use the web interface... I''m lost

On 11/20/06, Holly Thomas
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
>
> Page 103, the migration for adding the cover column does not seem to
> work.
>
> $ script/generate migration add_book_cover_column
>
> class AddBookCoverColumn < ActiveRecord::Migration
> def self.up
> add_column :books, :cover_image, :string
> end
> def self.down
> remove_column :books, :cover_image
> end
> end
>
> When I do the "rake migrate", I get table books already exists
error
> message.
> Can someone tell me how to get this to work? TIA.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >