Professional Documents
Culture Documents
.superclass
.class
BasicObject
.superclass
.class
Object Object
.superclass
.superclass
.class
.superclass Module
.superclass
.class .class
"abc" String Class
.class
.class
16
RubyGeminstall
1. gem env
2. cd /Users/medusasa/.rvm/gems/ruby-2.3.2/gems
3. ls
gem
16
Hash
Hash Hashvalue
h = {"a": 1, "b": 2}
h[:a] #=> 1
h = {a: 1, b: 2}
h["a"] #=> nil
h = {:a => 1, :b => 2}
16
17
Meetup
17
VPS
1 VPS ip: 192.166.111.11
192.166.111.11
2 meetup.io
DNS
ip:192.166.111.11
3
DNS DNS
xxxxxx
meetup.io
4
DNS
17
DNSVPS
www.meetup.io VPS
139.166.111.11,
DNS
DNS
www.meetup.io
ip139.166.111.11
17
CDN
www.meetup.io/logo.png
6
logo.png 5
14
22 3
4
1 2
1
CDN
CDN
CDN
VPS
CDNlogo.png
VPS
User
CDN
17
DNSVPSCDN
VPS
4
logo.png
User
3
5
http://meetup.io/logo.png
CDN
DNS
17
_url _path
_path
meetups_path /meetups
edit_meetup_path(5) /meetups/5/edit
_url
meetups_url https://www.meetup.io/meetups
edit_meetup_url(5) https://www.meetup.io/meetups/5/edit
(email) _url
_path
17
git rebase commit1commit1commit2commit2
commit_4
(Head) commit_4
a.rbb.rbcommit_5
z.rb
commit_3 z.rbcommit_5commit_2
z.rbcommit_2
commit_2
commit_1 1. z.rb: git add z.rb
2. git commit -m "fix z.rb"
3. a.rb, b.rb: git stash
4. "fix z.rb"commit_2: git rebase -i commit_1
5. : git stash pop
feature
17
18
Meetup
18
rails g model Post force
18
POSTGET
GET
GET
POST
18
18
Feature ()
18
19
Meetup
19
Middleware
rails middleware
19
20
Meetup
20
SQL
tickets
registrations
20
SQL JOIN
20
render redirect_to
20
render redirect_to
posts/newurlwww.example.com/posts/new
submitrender :newurlwww.example.com/posts
renderurlposts/createurl
rake routesnewcreateurihttp method
createurl
JDStore,checkoutcheckout.html.erb
checkoutactionroutespost
chromeget
redirect_to302response
20
HTTP
1. BASIC
2. DIGEST
3. SSL
4. cookies sessions
20