Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
210
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
420
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.8k
Dive into Elixir v1.6 Code Formatter
ma2gedev
1
150
Other Decks in Programming
See All in Programming
5分ぐらいで分かる、トリミング機能の作り方
tsutsuitakumi
0
120
layerx_20241129.pdf
kyoheig3
1
170
14 Years of iOS: Lessons and Key Points
seyfoyun
0
370
[KR] Open-Source Ecosystems
skydoves
0
110
flutterkaigi_2024.pdf
kyoheig3
0
350
EMになってからチームの成果を最大化するために取り組んだこと/ Maximize team performance as EM
nashiusagi
0
130
初めてDefinitelyTypedにPRを出した話
syumai
0
470
物流システムにおけるリファクタリングとアーキテクチャの再構築 〜依存関係とモジュール分割の重要性〜
deeprain
1
240
型付き API リクエストを実現するいくつかの手法とその選択 / Typed API Request
euxn23
9
4k
Reckoner における Datadog Browser Test の活用事例 / Datadog Browser Test at Reckoner
nomadblacky
0
180
距離関数を極める! / SESSIONS 2024
gam0022
0
340
N.E.X.T LEVEL
pluu
2
210
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
How to Ace a Technical Interview
jacobian
276
23k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
400
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
The Language of Interfaces
destraynor
154
24k
A Philosophy of Restraint
colly
203
16k
Thoughts on Productivity
jonyablonski
67
4.3k
KATA
mclloyd
29
14k
Fireside Chat
paigeccino
34
3k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.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