#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...

, we showed you how to build a versioned API for a store application. We can interact with this application through JSON if we visit the path /api/products . This API is completely public so anyone can use it to edit or destroy the products but usually we want to restrict access to an...

Apr 04, 2012 | 5 minutes | Active Record , Plugins , Models Rails has great internationalization (I18n) support making it easy to translate static text into other languages, but how do we translate database content? Learn how using Globalize 3 in this episode. Click to Play Video ▶ Tw...

Nice cast! If you're already fronting your webapp with Nginx I can also recommend the Nginx HTTP Push module which is very easy to setup and does pretty much the same thing in this example. Then you can setup locations in your Ngixx conf where you can long poll for messages on various...