Source code file: Depot1/db/seeds.rb:
# create! raises an exception if there is an error. Product.create!(cat_num: 'B001', title: 'CoffeeScript', description: %{CoffeeScript is JavaScript done right. It provides all of JavaScript's functionality wrapped in a cleaner, more succinct syntax. In the first book on this exciting new language, CoffeeScript guru Trevor Burnham shows you how to hold onto all the power and flexibility of JavaScript while writing clearer, cleaner, and safer code. }, image_url: 'cs.jpg', price: 36.00) Product.create!(cat_num: 'B002', title: 'Programming Ruby 1.9 & 2.0', description: %{Ruby is the fastest growing and most exciting dynamic language out there. If you need to get working programs delivered fast, you should add Ruby to your toolbox. }, image_url: 'ruby.jpg', price: 49.95) Product.create!(cat_num: 'B003', title: 'Rails Test Prescriptions', description: %{ Rails Test Prescriptions is a comprehensive guide to testing Rails applications, covering Test-Driven Development from both a theoretical perspective (why to test) and from a practical perspective (how to test effectively). It covers the core Rails testing tools and procedures for Rails 2 and Rails 3, and introduces popular add-ons, including Cucumber, Shoulda, Machinist, Mocha, and Rcov. }, image_url: 'rtp.jpg', price: 34.95)