ActionController::Routing::Routes.draw do |map| map.home "", :controller => "home", :action => "index" map.login "shop/signonForm.shtml", :controller => "authentication", :action => "login" map.new_account "shop/newAccountForm.shtml", :controller => "accounts", :action => "new" map.new_account_post "shop/newAccount.shtml", :controller => "accounts", :action => "new_post" map.cart "shop/viewCart.shtml", :controller => "cart", :action => "show" map.shop "shop/index.shtml", :controller => "shop", :action => "index" map.category "shop/viewCategory.shtml", :controller => "categories", :action => "show" map.product "shop/viewProduct.shtml", :controller => "products", :action => "show" map.item "shop/viewItem.shtml", :controller => "items", :action => "show" map.add_to_cart "shop/addItemToCart.shtml", :controller => "cart", :action => "add_item" map.login_post "shop/signon.shtml", :controller => "authentication", :action => "login_post" map.logout "shop/signoff.shtml", :controller => "authentication", :action => "logout" map.cart_summary "shop/checkout.shtml", :controller => "cart", :action => "summary" map.new_order "shop/newOrderForm.shtml", :controller => "orders", :action => "new" map.edit_account "shop/editAccountForm.shtml", :controller => "accounts", :action => "edit" map.update_cart "shop/updateCartQuantities.shtml", :controller => "cart", :action => "update" map.remove_from_cart "shop/removeItemFromCart.shtml", :controller => "cart", :action => "remove" map.confirm_order "shop/newOrder.shtml", :controller => "orders", :action => "confirm" map.orders "shop/listOrders.shtml", :controller => "orders", :action => "list" map.order "shop/viewOrder.shtml", :controller => "orders", :action => "show" map.search_products "shop/searchProducts.shtml", :controller => "products", :action => "search" end