- Customer facing Product List (with "Add to Cart" buttons)
- Controller test for
Products#add_to_cart
- Cart Relations (many carts, each has many items)
- Storing cart in session. Check the Session Guidelines
- Modify the
add_to_cart
method to store the product in your cart. (Is it on the right controller?) - Show a cart badge on every page to show how many items are in your cart
- Create a
show
page for your cart - Total up the cost of the items in your cart (Taxes?)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get '/*' do | |
"yo" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Information</key> | |
<dict> | |
<key>Description</key> | |
<string>Map Rails ActiveSupport timezones to iOS readable timezone IDs.</string> | |
<key>Version</key> | |
<string>1.0</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# general | |
AdvancedNewFile | |
All Autocomplete | |
Color Highlighter | |
GitGutter | |
Githubinator | |
SidebarEnhancements | |
# lanuages | |
Coffeescript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fix SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError) | |
# | |
# https://coderwall.com/p/ubl6iw/fix-ssl_connect-returned-1-errno-0-state-sslv3-read-server-certificate-b-certificate-verify-failed-openssl-ssl-sslerror | |
# | |
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MeController < ApplicationController | |
def show | |
if session[:messages].blank? | |
session[:messages] = [] | |
end | |
if session[:message_count].blank? | |
session[:message_count] = 0 | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stedolan.github.io/jq/ | |
cat Heroku-Syslog_2015-02-27_232755_2015-02-28_002755.json | jq -r '.[]|.m|tostring' | cut -c 59- > oink.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir inclass-10 | |
cd inclass-10 | |
git init | |
curl https://www.gitignore.io/api/node > .gitignore | |
npm init | |
npm install --save dotenv express body-parser | |
git add -A | |
git commit -m 'initial commit' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ httperf --num-conns 100 --rate 20 --uri / --server simplicitysignals.com |
OlderNewer