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
84
ひとりでデプロイ
tachiba
0
220
Other Decks in Technology
See All in Technology
第1回 国土交通省 データコンペ参加者向け勉強会③- Snowflake x estie編 -
estie
0
130
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
310
初心者向けAWS Securityの勉強会mini Security-JAWSを9ヶ月ぐらい実施してきての近況
cmusudakeisuke
0
120
なぜ今 AI Agent なのか _近藤憲児
kenjikondobai
4
1.4k
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
Terraform CI/CD パイプラインにおける AWS CodeCommit の代替手段
hiyanger
1
240
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
210
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
750
The Rise of LLMOps
asei
7
1.5k
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
1k
OCI Vault 概要
oracle4engineer
PRO
0
9.7k
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
693
190k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
The Invisible Side of Design
smashingmag
298
50k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
410
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
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