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
A RESTful Resource Rant
Search
Theo Mills
February 25, 2014
Programming
67
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
A RESTful Resource Rant
Some gentle reminders regarding RESTful resources in Rails.
Theo Mills
February 25, 2014
Other Decks in Programming
See All in Programming
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
1
430
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
The Rails Doctrine Decade
koic
2
590
phperだってパンチカードでコーディングしたい
o0h
PRO
0
330
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
220
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1369
210k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Technical Leadership for Architectural Decision Making
baasie
3
600
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
GitHub's CSS Performance
jonrohan
1033
470k
The Invisible Side of Design
smashingmag
301
52k
WCS-LA-2024
lcolladotor
0
890
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Transcript
A RESTful Resource Rant
! RESTful Resource Reminders Some Gentle
A RESTful Resource Rant
A Bite-sized Rant
RESTful Resource Review GET index, show, new, edit POST create
PUT/PATCH update DELETE destroy
RESTful Resource Review GET index, show, new, edit POST create
PUT/PATCH update DELETE destroy Verbs
/blog_posts/1/comments RESTful Resource Review
/blog_posts/1/comments RESTful Resource Review Nouns
Rails provides us with a standard vocabulary for our controllers
via REST.
Random Reminder: There’s no need for empty action methods /blog_posts/1/comments
Fat Controllers
Skinny Controllers
Skinny Controllers
Tall & Skinny Controllers
Tall & Skinny Controllers (a.k.a. God Controllers)
Why is this bad? • Veers away from RESTful vocabulary
• Harder to accommodate Strong Parameters • Typically leads to before_filter explosion • WHEN DOES IT END?
The solution?
You need more NOUNS
Reminder: Your resources don’t have to mirror your models
Example
Gap in your data model
Example
Example (Awkward)
Reminder: Your RESTful controllers can still have friendly URL’s /login
! /logout
Reminder: Your URL’s can still be friendly /login ! /logout
</rant> Theo Mills ShippingEasy @twmills