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
150
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
93
ひとりでデプロイ
tachiba
0
220
Other Decks in Technology
See All in Technology
バクラクでのSystem Risk Records導入による変化と改善の取り組み/Changes and Improvement Initiatives Resulting from the Implementation of System Risk Records
taddy_919
0
220
ソフトウェア開発現代史: なぜ日本のソフトウェア開発は「滝」なのか?製造業の成功体験とのギャップ #jassttokyo
takabow
2
1.6k
Enterprise AI in 2025?
pamelafox
0
100
KCD Brazil '25: Enabling Developers with Dapr & Backstage
salaboy
1
130
AIエージェントキャッチアップと論文リサーチ
os1ma
6
1.2k
チームの性質によって変わる ADR との向き合い方と、生成 AI 時代のこれから / How to deal with ADR depends on the characteristics of the team
mh4gf
4
340
React Server Componentは 何を解決し何を解決しないのか / What do React Server Components solve, and what do they not solve?
kaminashi
6
1.2k
Keynote - KCD Brazil - Platform Engineering on K8s (portuguese)
salaboy
0
130
「ラベルにとらわれない」エンジニアでいること/Be an engineer beyond labels
kaonavi
0
160
ペアーズにおけるData Catalog導入の取り組み
hisamouna
0
190
AIエージェント完全に理解した
segavvy
4
280
Symfony in 2025: Scaling to 0
fabpot
2
210
Featured
See All Featured
Become a Pro
speakerdeck
PRO
27
5.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
28
1.6k
The Invisible Side of Design
smashingmag
299
50k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
22
2.6k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
40
2k
Reflections from 52 weeks, 52 projects
jeffersonlam
349
20k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
Raft: Consensus for Rubyists
vanstee
137
6.9k
Stop Working from a Prison Cell
hatefulcrawdad
268
20k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.5k
Product Roadmaps are Hard
iamctodd
PRO
52
11k
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