The Depot Application

7.4 Iteration B4: Linking to the Cart 7.2 Iteration B2: Add a Page Layout

7.3 Iteration B3: Use a Helper to Format the Price

Expected at least 1 element matching "span.price", found 0.

Traceback:
  /home/rubys/git/awdwr/edition3/work-187-23/vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb:307:in `assert_select'
  /home/rubys/git/awdwr/edition3/checkdepot.rb:99
edit app/views/store/index.html.erb
<h1>Your Pragmatic Catalog</h1>
 
<% @products.each do |product| -%>
  <div class="entry">
    <%= image_tag(product.image_url) %>
    <h3><%=h product.title %></h3>
    <%= product.description %>
    <div class="price-line">
    <span class="price"><%= number_to_currency(product.price) %></span>
    </div>
  </div>
<% end %>
get /store

ActiveRecord::StatementInvalid in StoreController#index

SQLite3::SQLException: no such table: products: SELECT * FROM "products"  ORDER BY title

RAILS_ROOT: /home/rubys/git/awdwr/edition3/work-187-23/depot

Application Trace | Framework Trace | Full Trace

Request

Parameters:

None

Show session dump

Response

Headers:

{"Content-Type"=>"",
 "Cache-Control"=>"no-cache"}

7.4 Iteration B4: Linking to the Cart 7.2 Iteration B2: Add a Page Layout