RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rest xRouting x
REST API Versioning
Episode #350 – May 16, 2012 – 108 comments

REST API Versioning

APIs should be consistent, but it is difficult to do this when returning a JSON response along side the HTML interface. Here I show how to add a versioned, RESTful API. The version can be determined from either the URL or HTTP headers. (10 minutes)
Semi-Static Pages (revised)
Episode #117 – Sep 02, 2012 – 70 comments

Semi-Static Pages (revised)

There are many ways to handle static pages in a Rails application. Here I show two approaches including one that uses a RESTful style PagesController to keep the content in the database (8 minutes)
Custom REST Actions
Episode #35 – May 23, 2007 – 65 comments

Custom REST Actions

REST adds many constraints. It restricts your controllers to seven actions. Normally this is okay, but sometimes you need to add your own custom actions. Learn how in this episode. (8 minutes)