##Project Week Cont'ed:
modeling.rb
Direct link
#http://guides.rubyonrails.org/association_basics.html#the-has-many-through-association
class Patient
belongs_to :primary_care_physician, :class_name => "Physician"
end
##Project Week Cont'ed:
modeling.rb
Direct link
#http://guides.rubyonrails.org/association_basics.html#the-has-many-through-association
class Patient
belongs_to :primary_care_physician, :class_name => "Physician"
end
ctrl T in sublime text lets you search for certain or file in your folder directory.
Diff. between a block & a proc: Block is an object and a Proc is not.
Projects-- api Rspec scaled down
##MOMA App - first rails model app
ARTISTS - name, DoB, nationality, bio
PAINTINGS - style, title, date, artist_id
no id for artists because an artist can have multiple paintints. (ARTISTS has_many PAINTINGS, but PAINTING belongs to an ARTIST). Thus you don't need an id for the artists.
sublime trix: in terminal, instead of typing subl . to open a sublime text folder, type subl . & to force sublime to run in the background, that way your terminal is still active instead of hanging.
Ruby Forms: http://guides.rubyonrails.org/form_helpers.html
Ruby key words: http://ruby.learncodethehardway.org/book/ex37.html
HW: https://gist.github.com/bridgpal/3e377a9dea50c1cad82a
http://jsfiddle.net/eTcvF/3/ (better solution)
reources: http://rubular.com/ https://github.com/TheOdinProject/curriculum http://colourco.de/
DOM Event Handler List: http://arantius.com/misc/webref/domref/dom_event_ref33.html (do not use the 'on' prefixes)
Dave's solution to Hangman problem: https://gist.github.com/davidmferris/5910840
##JavaScript
wget https://raw.github.com/coolaj86/dotfiles/master/.jshintrc
then install node.js from http://nodejs.org/ or
"The Cloud" - marketing wise, it implies anything that has to do with the internet these days.
but when we're talking about networks, it means the connection of computers from point A to some other computer B.
Firewall- a computer that by default accepts no connections, and accepts a few exceptions
port 80 = HTTP, port 443 = HTTPS (S=secure)
MVC/ Test Classes Modules Lab
we've installed oh-my-zsh for the terminal (in addition to pry that we had before): https://github.com/robbyrussell/oh-my-zsh
---|Type|Class