RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rest 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)
Rails Middleware Walkthrough
Episode #319 – Jan 23, 2012 – 117 comments

Rails Middleware Walkthrough

Here I describe each Rack middleware that is included in a Rails app which will give you a better understanding of what a request goes through behind the scenes before it hits your application. (14 minutes)
restful_authentication
Episode #67 – Aug 20, 2007 – 123 comments

restful_authentication

Need multiple user authentication? If so, the restful_authentication plugin is a great way to go. It will generate some basic authentication code for you which is good starting point to your authentication system. Watch this episode for details. (9 minutes)
Twitter Integration
Episode #359 – Jun 15, 2012 – 76 comments

Twitter Integration

Here I show how to integrate Twitter into a Rails app. This includes fetching data, caching it, and even how to authenticate as a user signing in to your application through Twitter. (14 minutes)
Securing an API
Episode #352 – May 23, 2012 – 74 comments

Securing an API

There are many approaches to locking down an API. Here I start off with HTTP Basic authentication then move on to generating a unique token which can be passed through a URL parameter or HTTP header. (7 minutes)
HTTP Streaming
Episode #266 – May 16, 2011 – 53 comments

HTTP Streaming

HTTP Streaming allows the browser to start processing the HTML response while the Rails app is still processing the rest of the request. (9 minutes)
Inherited Resources
Episode #230 – Sep 06, 2010 – 52 comments

Inherited Resources

Inherited Resource simplifies RESTful controllers by providing default actions which can be customized through inheritance. (9 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)
Authlogic
Episode #160 – May 04, 2009 – 127 comments

Authlogic

Authentication can get very complex. In this episode I show how Authlogic can handle this complexity while you stay in control of how it is presented to the user. (14 minutes)