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
Transcript
16 slides
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
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
140
ひとりでデプロイ
tachiba
0
240
Other Decks in Technology
See All in Technology
不具合データを用いたプロダクトコードの弱点可視化
tarappo
4
250
攻撃と守りは何が変わり、何が変わらないのか~最近の不正アクセスから考える、リスク評価と標準の使いどころ
oidfj
2
380
Is the Website Dying?
miriamschwab
0
270
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
想定外の利用がプロダクトの価値を広げる
lycorptech_jp
PRO
0
140
New Relicのアラート対応をClaude Codeで自動修正するワークフローを作った話
manabuseki
3
760
AWS AIB 受験体験記!~練習問題を AI に作らせてみて感じたこと~
ysuzuki
0
100
PMの私の 最近のAgent Skills活用法
haru860
0
100
技術同人誌を作る方法
yoshimura_datam
0
120
認知負荷の減らし方 ~開発にも日常業務にも活かせるノウハウ~
minorun365
PRO
20
19k
競馬予想をAIでやってみた話
yoshimura_datam
0
160
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
140
Featured
See All Featured
How GitHub (no longer) Works
holman
316
150k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
4
1.3k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
How to Talk to Developers About Accessibility
jct
2
630
KATA
mclloyd
PRO
35
16k
Thoughts on Productivity
jonyablonski
76
5.5k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
49k
Documentation Writing (for coders)
carmenintech
77
5.7k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
630
Odyssey Design
rkendrick25
PRO
3
980
Designing for humans not robots
tammielis
254
26k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
320