If you need to create an advanced search with a lot of fields, it may not be ideal to use a GET request as I showed in episode 37. In this episode I will show you how to handle this by creating a Search resource.

#106 Time Zones (revised) Oct 28, 2012 | 7 minutes | Active Support Active Support makes it easy to work with time zones. Learn how to add a Time Zone select field to a user form and watch out for the gotchas. Subscribe to Watch Episode Tweet Show Notes ASCIIcast 26 Comments Similar E...

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.

Related:

Note that there is a hash at the top of the manifest file. Rack-offline uses this to identify specific revisions of the cache manifest. While our application is in development mode this hash will change every time we reload the page. In production mode, however, this hash only changes...

The first step is to ensure that we’re running the latest version of Rails 3.2 and that all the application’s gems are up to date as well. Also we’ll need to be running Ruby 1.9.3 or later. It’s also a good idea to check that our app’s test suite is passing fully before starting to up...

Related:

Great Episode! I am a noob to rails and your railscasts have got me excited for ruby on rails. I am just starting out, but have watched almost half of your videos in the past week. I am starting a few new projects and going to dive right in trying to use it. I have been reading about ...

There’s a problem with our application, however. If there are multiple chat clients open they won’t all be updated in real time when a message is sent. Only the client that sent the message will see the new message; all the others will have to reload the page to see the it. There are ...

Related:

The application’s CSS file now requires a foundation_and_overrides file that was created by the generator. This loads in the Foundation framework and allows us to customize it by setting variables. We won’t show this file here as it’s very long, although most of it is comments showing...

#388 Multitenancy with Scopes pro Oct 20, 2012 | 12 minutes | Active Record , Authorization A multi-tenant application can be difficult to implement because the data for each tenant must be completely separate. Here I show how to do this using subdomains and default scopes in Active R...