Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Short intro to Rails4
Search
Takashi CHIBA
February 27, 2013
Technology
170
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Short intro to Rails4
Rails4b1が出たので少し追いつきつつ、さらに知識のある方はツッコミをいただければうれしいです!#ebisurb
Takashi CHIBA
February 27, 2013
More Decks by Takashi CHIBA
See All by Takashi CHIBA
ロカリを支える技術
tachiba
0
1.1k
Atom: Creating a Package is EASY
tachiba
0
390
楽して全文検索
tachiba
0
130
ひとりでデプロイ
tachiba
0
240
Other Decks in Technology
See All in Technology
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
5
650
Cloudflare Workers 向けアプリを C# で構築する ~WASM Native AOT への道~
nenonaninu
1
560
品質と信頼性を地続きにする
grimoh
2
820
Von-Neumann Machines, Dreams & The Futures of IT
ufried
0
110
AI de Idea
kawaguti
PRO
2
130
AIに任せた品質は、誰が見立てるのか - AI時代のテストマネジメント
nakanao
3
2.5k
データ界隈LT祭 第1回LT登壇
taromatsui_cccmkhd
2
1.5k
Slack上でインフラをトラブルシュートする! Agentic Platform Engineeringの第一歩
teru0x1
5
1.8k
安心して変更できるWebフロントエンドの作り方
pirosikick
5
2.8k
技術的負債から考える、AI時代のエンジニアリング投資 — ビズリーチの技術的負債と向き合った経験から、変更し続けられるソフトウェアを考える/ technical-debt-con2026
visional_engineering_and_design
4
3.3k
え、こんなに早く改修できるの?──新人エンジニアとスクラムマスターの2人が語る、AI×アジャイル開発の現場
ysasago
2
540
AIエージェントを最高のパートナーに育てる方法|評価と判断軸を育てる5つのステップ
koichiaoki
1
150
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.8k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Done Done
chrislema
186
16k
A Tale of Four Properties
chriscoyier
163
24k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
510
Heart Work Chapter 1 - Part 1
lfama
PRO
10
36k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
Exploring anti-patterns in Rails
aemeredith
4
510
Transcript
Short intro to Rails4 @TakashiChi_ba Thursday, February 28, 13
• @TakashiChi_ba • Wondershake, Inc. (2010/10~) • Ruby (2011/10~) Thursday,
February 28, 13
• Ruby 1.8ܥͷαϙʔτऴྃ • ىಈߴԽ schema_cache.dump, spring • ηΩϡϦςΟରࡦ strong_paramaters
Hello, Rails4 Thursday, February 28, 13
• activerecord-deprecated_finders • activeresource • activerecord-session_store • rails-observers ͳͲ ෛ࠴Gem
Thursday, February 28, 13
ActiveRecord/ ActiveModel Thursday, February 28, 13
NOT Ebisu.where("hoge <> ?", 'meguro') Ebisu.where.not(name: 'meguro') amatsuda͞Μ͍͍֨ Thursday, February
28, 13
scopelambdaͰ default_scope where(created_at: Time.now..(Time.now + 1.day)) default_scope { where(created_at: Time.now..(Time.now
+ 1.day)) } Thursday, February 28, 13
Fat Model Thursday, February 28, 13
ϏδωεϩδοΫ • controllerʹॻ͘ͷͳ͍ͳ͍ʂ • modelʹॻ͘ͱtoo fat model • lib/͔… •
serviceʁ τϥϯβΫγϣϯεΫϦϓτʁ Thursday, February 28, 13
ϏδωεϩδοΫ • σϑΥϧτͰautoload͞ΕΔ ҎԼͷσΟϨΫτϦ͕Ճ app/models/concerns/ app/controllers/concerns/ Thursday, February 28, 13
ҠߦΛݟਾ͑Δ Thursday, February 28, 13
ҠߦΛݟਾ͑Δ • beta1·͖͍ͩͭʁ gem ‘strong_parameters’ routes.rbͰmatchͰͳ͘get/post Thursday, February 28, 13
ͱ͍͑ • 37signalsͰ͢ͰʹBasecamp BreezeͰ rails4͕ΘΕ͍ͯΔͱʂ (ruby2.0͔ruby1.9.3͔Βͳ͍…) Thursday, February 28, 13
Ruby2.0 rvm get stable rvm pkg install openssl rvm install
2.0.0 rvm use 2.0.0 Thursday, February 28, 13
Rails4b1 gem install rails --version 4.0.0.beta1 --no-ri --no-rdoc rails new
rails4demo rails s Thursday, February 28, 13
ࢀߟ • WEB+DB vol.73 • Rails 4.0: Beta 1 released!
http://weblog.rubyonrails.org/2013/2/25/ Rails-4-0-beta1/ Thursday, February 28, 13