Writing resources_controller: Discovering REST Patterns in Rails

Ian White (i2w)
16:35 Thursday, 4-09-2008
General
Location: Saal Maritim B
Average rating: ***..
(3.89, 9 ratings)

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).

Photo of Ian White

Ian White

i2w

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.

Ian is Partner and Lead Developer at Argument from Design. He occasionally writes stuff on his blog.

News and Coverage
co-presented by Ruby Central, Inc. O'Reilly
  • Engine Yard
  • Sun Microsystems
  • Brightbox
  • ELC Technologies
  • T3N

Sponsor Opportunities

For information on exhibition and sponsorship opportunities at RailsConf Europe, contact Yvonne Romaine at yromaine@oreilly.com

Press and Media

For media-related inquiries, contact Maureen Jennings at maureen@oreilly.com.

Contact Us

View a complete list of RailsConf Europe Contacts