SlideShare a Scribd company logo
1 of 54
Download to read offline
Discovering a world of

Resources on Rails
David Heinemeier Hansson
Create Read Update Delete
What they told you...




Simplistic
Unfulfilling
Unworthy
Shameful
They were wrong
How I learned to stop
worrying and love the CRUD
find     create   update   destroy


SELECT   INSERT   UPDATE   DELETE
GET     POST      PUT     DELETE


 find     create   update   destroy


SELECT   INSERT   UPDATE   DELETE
POST   /people/create
GET    /people/show/1
POST   /people/update/1
POST   /people/destroy/1
POST     /people
GET      /people/1
PUT      /people/1
DELETE   /people/1
Why bother?




Consistency
Simplicity
Discoverability
Constraints are liberating
   (a straight jacket for your mind)
Model beyond “things”



Relations (membership, subscription)

Events (closure, change)

States (reviewed, accepted)
But!
CRUD is not a goal,
 it’s an aspiration,
a design technique
POST   /kases/1;close
       /identity;aspect

GET    /kases/1;edit
       /identity;view
And there is more!
Answering to mime types



One controller for many clients

One action returning different results

Flexible input model
One more thing
Active Resource
www.rubyonrails.org

More Related Content

What's hot

Thinking About Usability 20:20
Thinking About Usability 20:20Thinking About Usability 20:20
Thinking About Usability 20:20
Tamlyn Rhodes
 
Fast Cheap Barely In Control Web2 Expo
Fast Cheap Barely In Control Web2 ExpoFast Cheap Barely In Control Web2 Expo
Fast Cheap Barely In Control Web2 Expo
Rashmi Sinha
 
Is your employee comms strategy still relevant?
Is your employee comms strategy still relevant?Is your employee comms strategy still relevant?
Is your employee comms strategy still relevant?
Alice Dickson
 

What's hot (20)

Rescue the Retro
Rescue the RetroRescue the Retro
Rescue the Retro
 
The Misaligned Middle - Getting on board with Change
The Misaligned Middle - Getting on board with ChangeThe Misaligned Middle - Getting on board with Change
The Misaligned Middle - Getting on board with Change
 
Playing Lean Workshop – Tore Rasmussen, Lean Startup Practitioner & Co-creato...
Playing Lean Workshop – Tore Rasmussen, Lean Startup Practitioner & Co-creato...Playing Lean Workshop – Tore Rasmussen, Lean Startup Practitioner & Co-creato...
Playing Lean Workshop – Tore Rasmussen, Lean Startup Practitioner & Co-creato...
 
A Scaleup is not a Startup
A Scaleup is not a StartupA Scaleup is not a Startup
A Scaleup is not a Startup
 
RUFing it out with Customer Feedback: Knowing the “Why”
RUFing it out with Customer Feedback: Knowing the “Why”RUFing it out with Customer Feedback: Knowing the “Why”
RUFing it out with Customer Feedback: Knowing the “Why”
 
so, you want to be a website agency owner
so, you want to be a website agency ownerso, you want to be a website agency owner
so, you want to be a website agency owner
 
Perspective Business Design MIE februari 2020
Perspective Business Design MIE februari 2020Perspective Business Design MIE februari 2020
Perspective Business Design MIE februari 2020
 
Building a Culture of Success on Open Principles
Building a Culture of Success on Open PrinciplesBuilding a Culture of Success on Open Principles
Building a Culture of Success on Open Principles
 
A summary of Weploy
A summary of WeployA summary of Weploy
A summary of Weploy
 
Journeyman to Master
Journeyman to MasterJourneyman to Master
Journeyman to Master
 
Thinking About Usability 20:20
Thinking About Usability 20:20Thinking About Usability 20:20
Thinking About Usability 20:20
 
Cloud based 3D Printing : Lessons Learned
Cloud based 3D Printing : Lessons LearnedCloud based 3D Printing : Lessons Learned
Cloud based 3D Printing : Lessons Learned
 
Fast Cheap Barely In Control Web2 Expo
Fast Cheap Barely In Control Web2 ExpoFast Cheap Barely In Control Web2 Expo
Fast Cheap Barely In Control Web2 Expo
 
Game Changer for Linguistic Review: Shifting the Paradigm, Klaus Fleischmann...
 Game Changer for Linguistic Review: Shifting the Paradigm, Klaus Fleischmann... Game Changer for Linguistic Review: Shifting the Paradigm, Klaus Fleischmann...
Game Changer for Linguistic Review: Shifting the Paradigm, Klaus Fleischmann...
 
Moving Product Off the Shelf and Into the Hands of the Customer
Moving Product Off the Shelf and Into the Hands of the CustomerMoving Product Off the Shelf and Into the Hands of the Customer
Moving Product Off the Shelf and Into the Hands of the Customer
 
Perspective Business Design event 5 maart 2020
Perspective Business Design event 5 maart 2020Perspective Business Design event 5 maart 2020
Perspective Business Design event 5 maart 2020
 
Is your employee comms strategy still relevant?
Is your employee comms strategy still relevant?Is your employee comms strategy still relevant?
Is your employee comms strategy still relevant?
 
The Art of Lean Performance
The Art of Lean PerformanceThe Art of Lean Performance
The Art of Lean Performance
 
7 Small Business Productivity Tips
7 Small Business Productivity Tips7 Small Business Productivity Tips
7 Small Business Productivity Tips
 
The Product Journey: How Customer-Centric Feedback Loops Can Evolve Your Prod...
The Product Journey: How Customer-Centric Feedback Loops Can Evolve Your Prod...The Product Journey: How Customer-Centric Feedback Loops Can Evolve Your Prod...
The Product Journey: How Customer-Centric Feedback Loops Can Evolve Your Prod...
 

Viewers also liked (20)

Ugo Cei Presentation
Ugo Cei PresentationUgo Cei Presentation
Ugo Cei Presentation
 
State Of Rails 05
State Of Rails 05State Of Rails 05
State Of Rails 05
 
Thomas Fuchs Presentation
Thomas Fuchs PresentationThomas Fuchs Presentation
Thomas Fuchs Presentation
 
Rails Conf Talk Slides
Rails Conf Talk SlidesRails Conf Talk Slides
Rails Conf Talk Slides
 
Our Opinions!
Our Opinions!Our Opinions!
Our Opinions!
 
Pursuitofbeauty
PursuitofbeautyPursuitofbeauty
Pursuitofbeauty
 
Secretsofrubyonrails
SecretsofrubyonrailsSecretsofrubyonrails
Secretsofrubyonrails
 
Workin On The Rails Road
Workin On The Rails RoadWorkin On The Rails Road
Workin On The Rails Road
 
Fisl6
Fisl6Fisl6
Fisl6
 
Third Week 2
Third Week 2Third Week 2
Third Week 2
 
CTS Conference Web 2.0 Tutorial Part 1
CTS Conference Web 2.0 Tutorial Part 1CTS Conference Web 2.0 Tutorial Part 1
CTS Conference Web 2.0 Tutorial Part 1
 
CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2
 
Rails4 Days
Rails4 DaysRails4 Days
Rails4 Days
 
Marcel Molina Jr. Presentation
Marcel Molina Jr. PresentationMarcel Molina Jr. Presentation
Marcel Molina Jr. Presentation
 
Fourth Week
Fourth WeekFourth Week
Fourth Week
 
Slides
SlidesSlides
Slides
 
Dan Webb Presentation
Dan Webb PresentationDan Webb Presentation
Dan Webb Presentation
 
Search Engine Advertising echt laten renderen
Search Engine Advertising echt laten renderenSearch Engine Advertising echt laten renderen
Search Engine Advertising echt laten renderen
 
The Fourth Week
The Fourth WeekThe Fourth Week
The Fourth Week
 
Till Vollmer Presentation
Till Vollmer PresentationTill Vollmer Presentation
Till Vollmer Presentation
 

Similar to Worldofresources

Branding strategies for job opportunities
Branding strategies for job opportunitiesBranding strategies for job opportunities
Branding strategies for job opportunities
Sandeep Sharma
 
Guide to Giving Presentations
Guide to Giving PresentationsGuide to Giving Presentations
Guide to Giving Presentations
Greg Robleto
 

Similar to Worldofresources (20)

Christchurch Agile Professionals Network Presentation: Lessons Learned Implem...
Christchurch Agile Professionals Network Presentation: Lessons Learned Implem...Christchurch Agile Professionals Network Presentation: Lessons Learned Implem...
Christchurch Agile Professionals Network Presentation: Lessons Learned Implem...
 
HOW Design Conference 2010 Process Imporvement
HOW Design Conference 2010  Process ImporvementHOW Design Conference 2010  Process Imporvement
HOW Design Conference 2010 Process Imporvement
 
Startup Metrics for Pirates / KILL a Feature (FOWA London, Oct 2009)
Startup Metrics for Pirates / KILL a Feature (FOWA London, Oct 2009)Startup Metrics for Pirates / KILL a Feature (FOWA London, Oct 2009)
Startup Metrics for Pirates / KILL a Feature (FOWA London, Oct 2009)
 
The Startup Design Toolkit - a design-thinking approach to startups and produ...
The Startup Design Toolkit - a design-thinking approach to startups and produ...The Startup Design Toolkit - a design-thinking approach to startups and produ...
The Startup Design Toolkit - a design-thinking approach to startups and produ...
 
The Complexity Curve: How to Design for Simplicity (SXSW, March 2012)
The Complexity Curve: How to Design for Simplicity (SXSW, March 2012)The Complexity Curve: How to Design for Simplicity (SXSW, March 2012)
The Complexity Curve: How to Design for Simplicity (SXSW, March 2012)
 
Kickingoff agile product team culture
Kickingoff agile product team cultureKickingoff agile product team culture
Kickingoff agile product team culture
 
SaaS Academy: Fisherman's friend
SaaS Academy: Fisherman's friendSaaS Academy: Fisherman's friend
SaaS Academy: Fisherman's friend
 
“The Five Meetings You Meet in Web Design” by Kevin Hoffman (Now What? Confer...
“The Five Meetings You Meet in Web Design” by Kevin Hoffman (Now What? Confer...“The Five Meetings You Meet in Web Design” by Kevin Hoffman (Now What? Confer...
“The Five Meetings You Meet in Web Design” by Kevin Hoffman (Now What? Confer...
 
UX Prototyping and Personas 4-25-14
UX Prototyping and Personas 4-25-14UX Prototyping and Personas 4-25-14
UX Prototyping and Personas 4-25-14
 
Leaving you.v3
Leaving you.v3Leaving you.v3
Leaving you.v3
 
Selling Smart - November 7, 2012
Selling Smart - November 7, 2012Selling Smart - November 7, 2012
Selling Smart - November 7, 2012
 
The LEAN BUSINESS MODEL GAMEBOARD: A Fun Way to Holistically Learn, Master, a...
The LEAN BUSINESS MODEL GAMEBOARD: A Fun Way to Holistically Learn, Master, a...The LEAN BUSINESS MODEL GAMEBOARD: A Fun Way to Holistically Learn, Master, a...
The LEAN BUSINESS MODEL GAMEBOARD: A Fun Way to Holistically Learn, Master, a...
 
Replacing yourself in your Company
Replacing yourself in your CompanyReplacing yourself in your Company
Replacing yourself in your Company
 
Branding strategies for job opportunities
Branding strategies for job opportunitiesBranding strategies for job opportunities
Branding strategies for job opportunities
 
EXPLORA x Pepperclip - Visualization
EXPLORA x Pepperclip - VisualizationEXPLORA x Pepperclip - Visualization
EXPLORA x Pepperclip - Visualization
 
Guide to Giving Presentations
Guide to Giving PresentationsGuide to Giving Presentations
Guide to Giving Presentations
 
DESIGN LEADERSHIP TRUISMS and COACH, DIPLOMAT, CHAMPION, ARCHITECT
DESIGN LEADERSHIP TRUISMS and COACH, DIPLOMAT, CHAMPION, ARCHITECTDESIGN LEADERSHIP TRUISMS and COACH, DIPLOMAT, CHAMPION, ARCHITECT
DESIGN LEADERSHIP TRUISMS and COACH, DIPLOMAT, CHAMPION, ARCHITECT
 
What Front-End Developers (FED's) Need to Know to Be the Modern Day Superhero
What Front-End Developers (FED's) Need to Know to Be the Modern Day SuperheroWhat Front-End Developers (FED's) Need to Know to Be the Modern Day Superhero
What Front-End Developers (FED's) Need to Know to Be the Modern Day Superhero
 
Ally Oops
Ally OopsAlly Oops
Ally Oops
 
Emerging Skills for L&D to Enable the Future of Work
Emerging Skills for L&D to Enable the Future of WorkEmerging Skills for L&D to Enable the Future of Work
Emerging Skills for L&D to Enable the Future of Work
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Worldofresources