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
Short intro to Rails4
Search
Takashi CHIBA
February 27, 2013
Technology
2
140
Short intro to Rails4
Rails4b1が出たので少し追いつきつつ、さらに知識のある方はツッコミをいただければうれしいです!#ebisurb
Takashi CHIBA
February 27, 2013
Tweet
Share
More Decks by Takashi CHIBA
See All by Takashi CHIBA
ロカリを支える技術
tachiba
0
1k
Atom: Creating a Package is EASY
tachiba
0
350
楽して全文検索
tachiba
0
85
ひとりでデプロイ
tachiba
0
220
Other Decks in Technology
See All in Technology
Alignment and Autonomy in Cybozu - 300人の開発組織でアラインメントと自律性を両立させるアジャイルな組織運営 / RSGT2025
ama_ch
1
2.4k
EMConf JP の楽しみ方 / How to enjoy EMConf JP
pauli
2
150
駆け出しリーダーとしての第一歩〜開発チームとの新しい関わり方〜 / Beginning Journey as Team Leader
kaonavi
0
120
商品レコメンドでのexplicit negative feedbackの活用
alpicola
2
370
機械学習を「社会実装」するということ 2025年版 / Social Implementation of Machine Learning 2025 Version
moepy_stats
5
1.2k
メールヘッダーを見てみよう
hinono
0
110
AWS re:Invent 2024 recap in 20min / JAWSUG 千葉 2025.1.14
shimy
1
100
PaaSの歴史と、 アプリケーションプラットフォームのこれから
jacopen
7
1.5k
技術に触れたり、顔を出そう
maruto
1
150
なぜfreeeはハブ・アンド・スポーク型の データメッシュアーキテクチャにチャレンジするのか?
shinichiro_joya
2
490
AWSの生成AIサービス Amazon Bedrock入門!(2025年1月版)
minorun365
PRO
7
470
AWSサービスアップデート 2024/12 Part3
nrinetcom
PRO
0
140
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
67
4.5k
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
Speed Design
sergeychernyshev
25
740
Raft: Consensus for Rubyists
vanstee
137
6.7k
How to Ace a Technical Interview
jacobian
276
23k
Code Reviewing Like a Champion
maltzj
521
39k
How to train your dragon (web standard)
notwaldorf
89
5.8k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Automating Front-end Workflow
addyosmani
1366
200k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Git: the NoSQL Database
bkeepers
PRO
427
64k
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