#Day 13
###Date In pry
require 'date' today = Date.today today.tuesday?
#Day 13
###Date In pry
require 'date' today = Date.today today.tuesday?
#Day 14
###Active Record Relations
Say exercise: https://gist.github.com/wofockham/7b7c6dece27cd8b19557
Homework: Read up on associations. Rails guide + one other.
Database free sinatra MTA.
#Day 15
Warm up exericse: https://gist.github.com/wofockham/afaa05c174feb06f551c
Dependency hell (http://en.wikipedia.org/wiki/Dependency_hell)
Ruby gems (http://rubygems.org/)
Bundler : (http://bundler.io/)
#Day 16
Actice record associations
Associations have to be in alphabetical order.
Weekend homework (https://gist.github.com/wofockham/1000198e4ae7bed746ae) Morning warm-up: (https://gist.github.com/mathildathompson/9590420)
##Rails app
#Day 17
rails console is the same thing as pry.
Your terminal shoul have 4 tabs open with shell, server, pry and psql.
"rm -rf folder name" in pry to remove a folder
rake db:drop to remove a database
#Day18
Morning warmup: (https://gist.github.com/wofockham/241c21478b5d593b7830)
Ruby api: (http://api.rubyonrails.org/)
http://api.rubyonrails.org/classes/ActionView/Helpers.html
###Setting up rails project
#Day19
###Steps to create Rails app
#Day 20
Tunr
rails generate controller Pages - creates controllers
http://haml.info/ - DRY html
http://localhost:3000/rails/routes - avoids typing rake routes in the terminal all the time
#Day 21
##Branching
git branch shows the branches your repo already has git checkout -b login -> To go in the branch git branch
git checkout master goes back to main repo git checkout login --> goes back to branch
#Day 23
###Nokogiri web scraping
Code climate
require 'open-uri' in rails console
doc = Nokogiri::HTML('http://www.pinterest.com/search/pins/?q=pug')