Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
320
Coding Challenge Advent of Code 2019
ma2gedev
0
150
Developer Experience in GraphQL Schema-first Development
ma2gedev
0
2.3k
Dependency Inversion Principle in Keyboard Firmware
ma2gedev
0
510
OSSの歩き方 / Walking with OSS
ma2gedev
10
2.6k
GraphQL 開発で必要になったこと / What we needed for GraphQL development
ma2gedev
0
1.2k
キーボードをカスタムしてプログラミング環境を良くした話 / Improved programming environment with customizing keybords
ma2gedev
0
1.4k
Translating "Erlang in Anger" with Erlang & Elixir community members
ma2gedev
0
2.9k
Dive into Elixir v1.6 Code Formatter
ma2gedev
1
180
Other Decks in Programming
See All in Programming
Micro Frontendsで築いた 共通基盤と運用の試行錯誤 / Building a Shared Platform with Micro Frontends: Operational Learnings
kyntk
1
1.6k
TUIライブラリつくってみた / i-just-make-TUI-library
kazto
1
130
AIエージェントでのJava開発がはかどるMCPをAIを使って開発してみた / java mcp for jjug
kishida
4
830
Feature Flags Suck! - KubeCon Atlanta 2025
phodgson
1
190
『実践MLOps』から学ぶ DevOps for ML
nsakki55
2
490
高単価案件で働くための心構え
nullnull
0
170
競馬で学ぶ機械学習の基本と実践 / Machine Learning with Horse Racing
shoheimitani
14
14k
開発15年のAIネイティブでない 巨大サービスのAI最適化
rapicro
0
110
Java_プロセスのメモリ監視の落とし穴_NMT_で見抜けない_glibc_キャッシュ問題_.pdf
ntt_dsol_java
0
230
Reactive Thinking with Signals and the new Resource API
manfredsteyer
PRO
0
130
Module Harmony
petamoriken
2
580
ZOZOにおけるAI活用の現在 ~モバイルアプリ開発でのAI活用状況と事例~
zozotech
PRO
2
2.3k
Featured
See All Featured
Balancing Empowerment & Direction
lara
5
770
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.1k
Leading Effective Engineering Teams in the AI Era
addyosmani
8
1.2k
Six Lessons from altMBA
skipperchong
29
4.1k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Being A Developer After 40
akosma
91
590k
Mobile First: as difficult as doing things right
swwweet
225
10k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Side Projects
sachag
455
43k
How to Ace a Technical Interview
jacobian
280
24k
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