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
shinosakarb #11 Rails 4 Pattenrs
Search
murajun1978
December 20, 2014
Programming
180
1
Share
shinosakarb #11 Rails 4 Pattenrs
murajun1978
December 20, 2014
More Decks by murajun1978
See All by murajun1978
変化を楽しむエンジニアリング ~ いままでとこれから ~
murajun1978
0
1.2k
How to Enjoy the Murajun’s Style
murajun1978
0
97
Building Tebukuro with Hotwire and Rails
murajun1978
0
1.5k
Zeitwerk integration in Rails 6.0
murajun1978
0
140
Efficient development with GraphQL
murajun1978
0
330
Effective Debugging Apps in VS Code
murajun1978
1
970
tebukuro
murajun1978
0
140
Shinosaka.rb #17 Hands on
murajun1978
0
70
New Features in Rails 4.2
murajun1978
0
960
Other Decks in Programming
See All in Programming
의존성 주입과 모듈화
fornewid
0
160
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
1.4k
Road to RubyKaigi: Play Hard(ware)
makicamel
1
520
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
170
Making the RBS Parser Faster
soutaro
0
640
ついに来た!本格的なマルチクラウド時代の Google Cloud
maroon1st
0
340
第3木曜LT会 #28
tinykitten
PRO
0
120
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.8k
2026-04-15 Spring IO - I Can See Clearly Now
jonatan_ivanov
1
160
Kingdom of the Machine
yui_knk
2
1.3k
AIを導入する前にやるべきこと
negima
2
320
ソースコード→AST→オペコード、の旅を覗いてみる
o0h
PRO
1
110
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
280
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
160
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.7k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
Unsuck your backbone
ammeep
672
58k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
Paper Plane (Part 1)
katiecoart
PRO
0
7k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
200
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
190
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
300
Measuring & Analyzing Core Web Vitals
bluesmoon
9
820
Transcript
Rails 4 Patterns Shinosaka.rb #11
me @murajun1978
Rails 4.2.0 has been released!
new goodies ActionMailer #deliver_later Active Job Web Console Good! Adequate
Record
Agenda • ActiveRecord::Callbacks • Scope • ActiveSupport::Concern • Decorator •
ActiveDecorator vs Draper • Helper
Fat Controller
Fat Controller
ActiveRecord::Callbacks
Scope NoMethodError!!
Scope
Scope
Fat Model
ActiveSupport::Concern app/models/concerns/… Class method duplicate :(
Decorator ActiveDecorator view logic… :( $ rails g decorator Post
app/decorators/…
Decorator Which do you like? ActiveDecorator Draper https://github.com/drapergem/draper https://github.com/amatsuda/active_decorator
Helper content_tag_for <tr id="post_123" class=“post ..”>…</tr> http://localhost/posts#post_123