Skip to content

Commit

Permalink
adding the checkout template.
Browse files Browse the repository at this point in the history
  • Loading branch information
illuminerdi committed Feb 10, 2009
1 parent bdd9406 commit 81110ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/store_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ def empty_cart

def checkout
@cart = find_cart
if @cart.items.empty?
redirect_to_index("Your cart is empty")
else
@order = Order.new
end
end

private
Expand Down
Empty file.

0 comments on commit 81110ed

Please sign in to comment.