small medium large xlarge

Generic-user-small
02 Jun 2013, 08:38
Roger McDonald (8 posts)

My daughter is learning Rails 4 from the new book.

She has scaffolded title, description, image_url and price as it says in the tutorial.

On page 72 it discusses the index.html.erb. She has fixed her code to look like the book, but has found that product.price has been omitted, this is confusing.

Adding to_currency to the product.price is later in the book, but shouldn’t product.price be mentioned on page 72 as well, because it was originally in the code when it was scaffolded?

Thanks.

You must be logged in to comment