Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
try rails 4
Search
Takayuki Matsubara
May 22, 2013
Programming
5
2.6k
try rails 4
M3 Tech Talk #1 2013/05/24
Takayuki Matsubara
May 22, 2013
Tweet
Share
More Decks by Takayuki Matsubara
See All by Takayuki Matsubara
Rails Web Development with AWS Lambda
ma2gedev
0
190
Coding Challenge Advent of Code 2019
ma2gedev
0
120
Developer Experience in GraphQL Schema-first Development
ma2gedev
0
2.1k
Dependency Inversion Principle in Keyboard Firmware
ma2gedev
0
410
OSSの歩き方 / Walking with OSS
ma2gedev
10
2.5k
GraphQL 開発で必要になったこと / What we needed for GraphQL development
ma2gedev
0
1k
キーボードをカスタムしてプログラミング環境を良くした話 / Improved programming environment with customizing keybords
ma2gedev
0
1.2k
Translating "Erlang in Anger" with Erlang & Elixir community members
ma2gedev
0
2.7k
Dive into Elixir v1.6 Code Formatter
ma2gedev
1
150
Other Decks in Programming
See All in Programming
Android 15 でアクションバー表示時にステータスバーが白くなってしまう問題
tonionagauzzi
0
110
Vaporモードを大規模サービスに最速導入して学びを共有する
kazukishimamoto
4
4.2k
僕がつくった48個のWebサービス達
yusukebe
17
16k
Java ジェネリクス入門 2024
nagise
0
530
現場で役立つモデリング 超入門
masuda220
PRO
12
2.6k
Kubernetes for Data Engineers: Building Scalable, Reliable Data Pipelines
sucitw
1
180
飲食業界向けマルチプロダクトを実現させる開発体制とリアルな現状
hiroya0601
1
370
Piniaの現状と今後
waka292
5
1.4k
Importmapを使ったJavaScriptの 読み込みとブラウザアドオンの影響
swamp09
3
1.2k
のびしろを広げる巻き込まれ力:偶然を活かすキャリアの作り方/oso2024
takahashiikki
1
350
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
8
730
今日で分かる!カスタムコップの作り方
krpk1900
2
360
Featured
See All Featured
Building Applications with DynamoDB
mza
90
6k
Speed Design
sergeychernyshev
24
560
A Philosophy of Restraint
colly
203
16k
Gamification - CAS2011
davidbonilla
80
5k
Into the Great Unknown - MozCon
thekraken
31
1.5k
Side Projects
sachag
452
42k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
9
670
Done Done
chrislema
181
16k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.8k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
328
21k
We Have a Design System, Now What?
morganepeng
50
7.2k
Making the Leap to Tech Lead
cromwellryan
132
8.9k
Transcript
!NBHF 5SZ3BJMT
(JU)VCNBHFEFW 5XJUUFS!NBHF
None
ճ͔͠ߦͬͯͳ͍͚Ͳ
ผ݅Ͱ͕͢ 3VCZ)JSPCBͰ-5͢Δ͜ͱʹͳΓ·͠ ͨ ΈΜͳԠื͢Ε͍͍ͱࢥ͏
ຊ
·ͩϦϦʔε͞Εͯ ͍ͳ͍ʂʂ̍ http://www.flickr.com/photos/anandham/4952020586/
͋ͱ͏গ͠ IUUQXFCMPHSVCZPOSBJMTPSH
3BJMTSD 3BJMTCFUBਓபײߴ͔ͬͨ
ରԠͨ͜͠ͱ SBJMTVQEBUFίϚϯυ࣮ߦɹ ৽ػೳͷҠߦ 4UBHJOHڥ
SBJMTVQEBUF
(FNpMF gem 'rails', '4.0.0.rc1' $ gem install -v 1.3.0 bundler
$ bundle update rails
SBJMTVQEBUF ͜ΕΛ࣮ߦͯ͠ͻͨ͢ΒࠩͱʹΒΊ ͬ͜ ඞཁͳͱ͜ΖΛϚʔδ͍ͯ͘͠ $ rake rails:update
DPPLJF 3BJMTॺ໊ վ͟ΜͰ͖ͳ͍͕؆୯ʹதΛݟ ΕΔ 3BJMT҉߸Խ EFGBVMU த؆୯ʹݟΔ͜ͱ͕Ͱ͖ͳ͍
DPPLJF DPOpHJOJUJBMJ[FSTTFDSFU@UPLFOSC 3BJMT .ZBQQ"QQMJDBUJPODPOpHTFDSFU@UPLFO 3BJMT .ZBQQ"QQMJDBUJPODPOpHTFDSFU@LFZ@CBTF
DPPLJF TFDSFU@UPLFOΛͭͭ͠ɺ TFDSFU@LFZ@CBTFΛఆٛ͢Δ͜ͱͰ 3BJMTͷDPPLJFʹࣗಈΞοϓάϨʔυ ͰݩʹΕͳ͍ͷͰΔલʹ֬ೝ see also: http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#action-pack
UVSCPMJOLT HFNΛίϝϯτΞτʂʂ ΞοϓάϨʔυ৻ॏʹ BMMMJOLTBSFUVSCPPOEFGBVMU ৽نϓϩδΣΫτͳΒɻɻɻ
৽ػೳҠߦ
4USPOH1BSBNFUFS BUUS@BDDFTTJCMF4USPOH1BSBNUFST Ϟσϧʹ༩͑Δύϥϝʔλͷ͕ί ϯτϩʔϥ
"DUJWF.PEFM.PEFM # Rails3 class SampleForm include ActiveModel::Conversion include ActiveModel::Validations extend
ActiveModel::Naming # লུ def persisted? return false end end
"DUJWF.PEFM.PEFM # Rails3 class SampleForm include ActiveModel::Conversion include ActiveModel::Validations extend
ActiveModel::Naming # লུ def persisted? return false end end # Rails4 Simple!! class SampleForm include ActiveModel::Model # লུ end
CFGPSFBGUFS@BDUJPO CFGPSF@pMUFSCFGPSF@BDUJPO BGUFS@pMUFSBGUFS@BDUJPO
͜͜·Ͱൺֱతॱௐ
4UBHJOHڥ
͋ͬͯΑ͔ͬͨ 4UBHJOH
͕̎ͭى͖ͨ
ಈ͔ͳ͍ ※ΩϟϓνϟΕͨͷͰ͕͢ɺ͜Μͳը໘ͩͬͨ
1BTTFOHFS ݪҼ3BJMT#BTF63*Λ͍ͬͯͨ͜ͱ 1BTTFOHFS͕ݹ͍"1*Λݺͼग़͠མͪ Δ ରࡦ3BDL#BTF63*Λ͏
ͭղܾ
"TTFUTυί͍ͬͨʁ http://www.flickr.com/photos/peterc8800/3394652160
"TTFUT͕࡞ΒΕ͍ͯͳ͍ ݪҼೋͭ Ұ༷ͭมߋ ͏ҰͭόάɻɻɻPS[
"TTFUTͷ༷มߋ WFOEPSBTTFUT MJCBTTFUTԼΛࢀর͠ ͳ͘ͳͬͨ ղܾࡦ্هʹஔ͍ͯͨ͠ϑΝΠϧ ΛBQQBTTFUTҠಈ͢Δ͜ͱ ·ͨDPOpHBTTFUTQSFDPNQJMFΛઃ ఆ See Also:
https://github.com/rails/rails/pull/7968
"TTFUTͷQSFDPNQJMFόά BQQBTTFUTͱ DPOpHBTTFUTQSFDPNQJMFͰରॲͨ͠ ͍ʂ ͕ɺDPOpHBTTFUTQSFDPNQJMF͕ແࢹ ͞ΕΔόά͕ɻɻɻ·͍ͩͬͯͳ͍ See Also:https://github.com/rails/sprockets-rails/pull/36
QSFDPNQJMF٧Μͩ
"TTFUT࡞ΒΕͳ͍ͷରॲ QSFDPNQJMFΘͳ͍ʂʂʂ ͕ٻΊΒΕΔڥͰͳ͔ͬͨͷͰ ͻͱ·ͣ͜ΕͰ ϦϦʔε·ͰʹΔͱ͍͍ͳ ଞਓͤ
ॴײ 3BJMTҎ߱ͳΒରԠͦ͜·Ͱ͠ ͘ͳ͍ ੵۃతʹਓபΛͱΓʹ͍͘͜ͱͰݟ͑ Δͷ͕͋Δ ͋ͬͯΑ͔ͬͨ4UBHJOH
ࢀߟ 8&# %#13&447PM 6QHSBEJOHUP3BJMT3BJMT$BTUT ެࣜɿ"(VJEFGPS6QHSBEJOH3VCZPO3BJMT 3BJMT;PNCJF0VUMBXT 6QHSBEJOHUP3BJMT
FOOOE