RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rest xFree Episodes x
REST API Versioning
Episode #350May 16, 2012108 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)
restful_authentication
Episode #67Aug 20, 2007123 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)
Securing an API
Episode #352May 23, 201274 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 #266May 16, 201153 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 #230Sep 06, 201052 comments

Inherited Resources

Inherited Resource simplifies RESTful controllers by providing default actions which can be customized through inheritance. (9 minutes)
Custom REST Actions
Episode #35May 23, 200765 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 #160May 04, 2009127 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)
make_resourceful
Episode #92Feb 10, 200839 comments

make_resourceful

The make_resourceful plugin is a great way to DRY up the 7 RESTful actions common in most controllers. Learn how to use it in this episode. (6 minutes)
Time Zones in Rails 2.1
Episode #106May 14, 200846 comments

Time Zones in Rails 2.1

In the past, time zones have been very difficult to work with, but no longer! Rails 2.1 brings with it great time zone support as you can see in this episode. (6 minutes)
More on ActiveResource
Episode #95Mar 02, 200855 comments

More on ActiveResource

See how to handle authentication and custom actions using ActiveResource in this episode. (8 minutes)