Worldofresources

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    Worldofresources - Presentation Transcript

    1. Discovering a world of Resources on Rails David Heinemeier Hansson
    2. Create Read Update Delete
    3. What they told you... Simplistic Unfulfilling Unworthy Shameful
    4. They were wrong
    5. How I learned to stop worrying and love the CRUD
    6. find create update destroy SELECT INSERT UPDATE DELETE
    7. GET POST PUT DELETE find create update destroy SELECT INSERT UPDATE DELETE
    8. POST /people/create GET /people/show/1 POST /people/update/1 POST /people/destroy/1
    9. POST /people GET /people/1 PUT /people/1 DELETE /people/1
    10. Why bother? Consistency Simplicity Discoverability
    11. Constraints are liberating (a straight jacket for your mind)
    12. Model beyond “things” Relations (membership, subscription) Events (closure, change) States (reviewed, accepted)
    13. But!
    14. CRUD is not a goal, it’s an aspiration, a design technique
    15. POST /kases/1;close /identity;aspect GET /kases/1;edit /identity;view
    16. And there is more!
    17. Answering to mime types One controller for many clients One action returning different results Flexible input model
    18. One more thing
    19. Active Resource
    20. www.rubyonrails.org

    + RubyOnRails_dudeRubyOnRails_dude, 3 years ago

    custom

    926 views, 2 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 926
      • 926 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 42
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories