Have you ever built a mobile app? Or a web app? Do you know how to build a single backend for supporting your web and mobile needs? In this speech we will discover how to build a simple application as a REST API in Ruby on Rails, and expose it as a web and a mobile app. We will see how the facilities introduced in Rails 3.1 allow to build and consume rich REST APIs in Javascript/Coffeescript, and how the Model-View-Controller pattern is applicable inside the browser.