/*** * Excerpted from "Agile Web Development with Rails", * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any purpose. * Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information. ***/ var search_data = {"index":{"searchIndex":["admincontroller","adminhelper","applicationcontroller","applicationhelper","cart","cartscontroller","activerecord","cartshelper","currentcart","lineitem","lineitemscontroller","lineitemshelper","order","ordernotifier","orderscontroller","ordershelper","product","productscontroller","productshelper","sessionscontroller","sessionshelper","storecontroller","storehelper","user","userscontroller","usershelper","add_line_items_from_cart()","add_product()","authorize()","create()","create()","create()","create()","create()","create()","default_url_options()","destroy()","destroy()","destroy()","destroy()","destroy()","destroy()","edit()","edit()","edit()","edit()","edit()","hidden_div_if()","index()","index()","index()","index()","index()","index()","index()","latest()","new()","new()","new()","new()","new()","new()","received()","set_i18n_locale_from_params()","shipped()","show()","show()","show()","show()","show()","total_price()","total_price()","update()","update()","update()","update()","update()","who_bought()","readme"],"longSearchIndex":["admincontroller","adminhelper","applicationcontroller","applicationhelper","cart","cartscontroller","cartscontroller::activerecord","cartshelper","currentcart","lineitem","lineitemscontroller","lineitemshelper","order","ordernotifier","orderscontroller","ordershelper","product","productscontroller","productshelper","sessionscontroller","sessionshelper","storecontroller","storehelper","user","userscontroller","usershelper","order#add_line_items_from_cart()","cart#add_product()","applicationcontroller#authorize()","cartscontroller#create()","lineitemscontroller#create()","orderscontroller#create()","productscontroller#create()","sessionscontroller#create()","userscontroller#create()","applicationcontroller#default_url_options()","cartscontroller#destroy()","lineitemscontroller#destroy()","orderscontroller#destroy()","productscontroller#destroy()","sessionscontroller#destroy()","userscontroller#destroy()","cartscontroller#edit()","lineitemscontroller#edit()","orderscontroller#edit()","productscontroller#edit()","userscontroller#edit()","applicationhelper#hidden_div_if()","admincontroller#index()","cartscontroller#index()","lineitemscontroller#index()","orderscontroller#index()","productscontroller#index()","storecontroller#index()","userscontroller#index()","product::latest()","cartscontroller#new()","lineitemscontroller#new()","orderscontroller#new()","productscontroller#new()","sessionscontroller#new()","userscontroller#new()","ordernotifier#received()","applicationcontroller#set_i18n_locale_from_params()","ordernotifier#shipped()","cartscontroller#show()","lineitemscontroller#show()","orderscontroller#show()","productscontroller#show()","userscontroller#show()","cart#total_price()","lineitem#total_price()","cartscontroller#update()","lineitemscontroller#update()","orderscontroller#update()","productscontroller#update()","userscontroller#update()","productscontroller#who_bought()",""],"info":[["AdminController","","AdminController.html","",""],["AdminHelper","","AdminHelper.html","",""],["ApplicationController","","ApplicationController.html","","

START:i18n\n"],["ApplicationHelper","","ApplicationHelper.html","",""],["Cart","","Cart.html","",""],["CartsController","","CartsController.html","","

START:setup START:setup\n"],["CartsController::ActiveRecord","","CartsController/ActiveRecord.html","",""],["CartsHelper","","CartsHelper.html","",""],["CurrentCart","","CurrentCart.html","",""],["LineItem","","LineItem.html","",""],["LineItemsController","","LineItemsController.html","","

START:current_cart START:setup\n"],["LineItemsHelper","","LineItemsHelper.html","",""],["Order","","Order.html","","

START:alifc\n"],["OrderNotifier","","OrderNotifier.html","",""],["OrdersController","","OrdersController.html","","

START:current_cart START:setup\n"],["OrdersHelper","","OrdersHelper.html","",""],["Product","","Product.html","","

START:relationships\n"],["ProductsController","","ProductsController.html","",""],["ProductsHelper","","ProductsHelper.html","",""],["SessionsController","","SessionsController.html","","

START:setup\n"],["SessionsHelper","","SessionsHelper.html","",""],["StoreController","","StoreController.html","","

START:setup\n"],["StoreHelper","","StoreHelper.html","",""],["User","","User.html","",""],["UsersController","","UsersController.html","",""],["UsersHelper","","UsersHelper.html","",""],["add_line_items_from_cart","Order","Order.html#method-i-add_line_items_from_cart","(cart)","

START:alifc START_HIGHLIGHT\n"],["add_product","Cart","Cart.html#method-i-add_product","(product_id)","

END_HIGHLIGHT START:add_product\n"],["authorize","ApplicationController","ApplicationController.html#method-i-authorize","()","

END:i18n\n"],["create","CartsController","CartsController.html#method-i-create","()","

POST /carts POST /carts.json\n"],["create","LineItemsController","LineItemsController.html#method-i-create","()","\n

POST /line_items\nPOST /line_items.json
\n

START:create\n"],["create","OrdersController","OrdersController.html#method-i-create","()","\n

POST /orders\nPOST /orders.json
\n

START:create START:create\n"],["create","ProductsController","ProductsController.html#method-i-create","()","

POST /products POST /products.json\n"],["create","SessionsController","SessionsController.html#method-i-create","()","

START:login\n"],["create","UsersController","UsersController.html#method-i-create","()","\n

POST /users\nPOST /users.json
\n

START:create\n"],["default_url_options","ApplicationController","ApplicationController.html#method-i-default_url_options","()",""],["destroy","CartsController","CartsController.html#method-i-destroy","()","\n

DELETE /carts/1\nDELETE /carts/1.json
\n

START:destroy\n"],["destroy","LineItemsController","LineItemsController.html#method-i-destroy","()","

DELETE /line_items/1 DELETE /line_items/1.json\n"],["destroy","OrdersController","OrdersController.html#method-i-destroy","()","

DELETE /orders/1 DELETE /orders/1.json\n"],["destroy","ProductsController","ProductsController.html#method-i-destroy","()","

DELETE /products/1 DELETE /products/1.json\n"],["destroy","SessionsController","SessionsController.html#method-i-destroy","()","

START:logout\n"],["destroy","UsersController","UsersController.html#method-i-destroy","()","\n

DELETE /users/1\nDELETE /users/1.json
\n

START:delete_user\n"],["edit","CartsController","CartsController.html#method-i-edit","()","

GET /carts/1/edit\n"],["edit","LineItemsController","LineItemsController.html#method-i-edit","()","

GET /line_items/1/edit\n"],["edit","OrdersController","OrdersController.html#method-i-edit","()","

GET /orders/1/edit\n"],["edit","ProductsController","ProductsController.html#method-i-edit","()","

GET /products/1/edit\n"],["edit","UsersController","UsersController.html#method-i-edit","()","

GET /users/1/edit\n"],["hidden_div_if","ApplicationHelper","ApplicationHelper.html#method-i-hidden_div_if","(condition, attributes = {}, &block)","

START_HIGHLIGHT\n"],["index","AdminController","AdminController.html#method-i-index","()",""],["index","CartsController","CartsController.html#method-i-index","()","\n

GET /carts
\n

END:setup\n\n

GET /carts.json
\n"],["index","LineItemsController","LineItemsController.html#method-i-index","()","\n
GET /line_items
\n

END:current_cart\n\n

GET /line_items.json
\n"],["index","OrdersController","OrdersController.html#method-i-index","()","\n
GET /orders
\n

END:current_cart\n\n

GET /orders.json
\n"],["index","ProductsController","ProductsController.html#method-i-index","()","

GET /products GET /products.json\n"],["index","StoreController","StoreController.html#method-i-index","()","

END_HIGHLIGHT START:index\n"],["index","UsersController","UsersController.html#method-i-index","()","\n

GET /users\nGET /users.json
\n

START:index\n"],["latest","Product","Product.html#method-c-latest","()",""],["new","CartsController","CartsController.html#method-i-new","()","

GET /carts/new\n"],["new","LineItemsController","LineItemsController.html#method-i-new","()","

GET /line_items/new\n"],["new","OrdersController","OrdersController.html#method-i-new","()","\n

GET /orders/new
\n

START:checkout\n"],["new","ProductsController","ProductsController.html#method-i-new","()","

GET /products/new\n"],["new","SessionsController","SessionsController.html#method-i-new","()","

END_HIGHLIGHT END:setup\n"],["new","UsersController","UsersController.html#method-i-new","()","

GET /users/new\n"],["received","OrderNotifier","OrderNotifier.html#method-i-received","(order)","\n

Subject can be set in your I18n file at config/locales/en.yml\nwith the following lookup:\n\n  en.order_notifier.received.subject
\n"],["set_i18n_locale_from_params","ApplicationController","ApplicationController.html#method-i-set_i18n_locale_from_params","()","

START:i18n START_HIGHLIGHT\n"],["shipped","OrderNotifier","OrderNotifier.html#method-i-shipped","(order)","\n

Subject can be set in your I18n file at config/locales/en.yml\nwith the following lookup:\n\n  en.order_notifier.shipped.subject
\n"],["show","CartsController","CartsController.html#method-i-show","()","

GET /carts/1 GET /carts/1.json\n"],["show","LineItemsController","LineItemsController.html#method-i-show","()","

GET /line_items/1 GET /line_items/1.json\n"],["show","OrdersController","OrdersController.html#method-i-show","()","

GET /orders/1 GET /orders/1.json\n"],["show","ProductsController","ProductsController.html#method-i-show","()","

GET /products/1 GET /products/1.json\n"],["show","UsersController","UsersController.html#method-i-show","()","

GET /users/1 GET /users/1.json\n"],["total_price","Cart","Cart.html#method-i-total_price","()","

START:total_price\n"],["total_price","LineItem","LineItem.html#method-i-total_price","()",""],["update","CartsController","CartsController.html#method-i-update","()","

PATCH/PUT /carts/1 PATCH/PUT /carts/1.json\n"],["update","LineItemsController","LineItemsController.html#method-i-update","()","

PATCH/PUT /line_items/1 PATCH/PUT /line_items/1.json\n"],["update","OrdersController","OrdersController.html#method-i-update","()","

PATCH/PUT /orders/1 PATCH/PUT /orders/1.json\n"],["update","ProductsController","ProductsController.html#method-i-update","()","

PATCH/PUT /products/1 PATCH/PUT /products/1.json\n"],["update","UsersController","UsersController.html#method-i-update","()","\n

PATCH/PUT /users/1\nPATCH/PUT /users/1.json
\n

START:update\n"],["who_bought","ProductsController","ProductsController.html#method-i-who_bought","()","

START:who_bought\n"],["README","","README_rdoc.html","","

The Depot Online Store\n

This application implements an online store, with a catalog, cart, and\norders. …\n"]]}}