FOSDEM '08 is a free and non-commercial event organised by the community, for the community. Its goal is to provide Free and Open Source developers a place to meet.


Schedule: RESTful best practices

Nicolas Jacobeus
Jean-Baptiste Escoyez
Day Sunday
Room AW1.105
Start time 12:00
End time 13:00
Duration 01:00
Event type Podium
Track Ruby on Rails
Language English
RESTful best practices

RESTful practices are increasingly being adopted by the web community. They can help architecture a web application in a clean and structured way. However, it is not always evident to apply the RESTful principles. In this talk we will first cover the basics of REST in Rails. Then, we will present some use cases we meet in our projects.

The whole Rails community is buzzing around REST. Indeed, it has been one of the most significant improvements of Rails since its first release in 2004. Rails made REST easy. However, using the RESTful features of Rails does not mean you will automatically use REST correctly. For many people, this REST thing is not crystal clear yet. In our talk, we will first remind the audience about the REST features of Rails.

Then, we will take a 10,000 feet view to approach the REST architectural concepts. Finally, we will illustrate these abstract concepts by actual case studies inspired by our everyday job. We will try to answer some basic questions like:

  • Why REST?
  • What is a resource?
* How does a RESTful URI looks like? * What is the relationship between REST and CRUD? * How does Rails handle REST? And some more advanced ones like:
  • How to get a resource in different formats?
  • How to create a RESTful wizard?
  • How to make my shopping cart RESTful?
  • What are the differences between SOA and REST?