Writing resources_controller: Discovering REST Patterns in Rails
Location: Saal Maritim B
I wrote resources_controller) in the beginning of 2007 to DRY up RESTful controllers. In its first iteration it simplified controllers by providing CRUD actions, and loading enclosing resources.
Since then it has evolved to deal with various RESTful issues such as handling polymorphic and singleton resources, referring to the resource or collection in abstract way, and providing a way of referring to resource urls in a ‘relative’ fashion.
In this talk I will show some of the RESTful patterns that emerged, their implementation, and how Rails helps (but sometimes gets in the way).
Ian began in the early 90s with Smalltalk-80 and life was good. He then had to write lots of things in C in a big company, and decided to to philosophy for a while. Returning to computers to earn some money, he tried writing web apps in php, which was no fun. Since using Rails, and ruby (which is almost as much fun as smalltalk), life is good again.