ZURB's Foundation is a front-end for quickly building applications and prototypes. It is similar to Twitter Bootstrap but uses Sass instead of LESS. Here you will learn the basics of the grid system, navigation, tooltips and more.
#416 Form Objects pro Jun 03, 2013 | 18 minutes | Refactoring , Forms Models have a tendency to become a complex mess as an application grows. In this episode you will learn a couple of techniques to extract form-behavior out into its own class. Subscribe to Watch Episode Tweet Show N...
In this episode we’ll take a look a Draper , a gem that lets us add decorators to a Rails application’s views much like a presenter pattern. If you find that you have a lot of complex view logic in your templates and helper methods Draper can help to clean up this code by taking a mor...
#416 Form Objects pro Jun 03, 2013 | 18 minutes | Refactoring , Forms Models have a tendency to become a complex mess as an application grows. In this episode you will learn a couple of techniques to extract form-behavior out into its own class. Subscribe to Watch Episode Tweet Show N...
May 13, 2013 | 12 minutes | Performance , Active Record Caching at a low level is a great option when the view is too dynamic to cache and you need something flexible that can work anywhere in the application. Here I show a variety of ways to use Rails.cache with Active Record.
I've been in bed this past week due to a particularly bad head cold which is why there haven't been any episodes. I feel I'm on the mend now and should be able to get back to producing content later this week. Pro subscribers can extend their subscription below by one week to make up ...
MiniProfiler allows you to see the speed of a request conveniently on the page. It also shows the SQL queries performed and allows you to profile a specific block of code.
Resque creates background jobs using Redis. It supports multiple queue and comes with an administration interface for monitoring and managing the queues.
# Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server whe...
#321 HTTP Caching pro Jan 30, 2012 | 15 minutes | Performance , Views , Caching With HTTP response headers you can the cache in the user's browser and proxies. Etags, Last-Modified, Cache-Control and Rack::Cache are all covered here Subscribe to Watch Episode Tweet Show Notes ASCIIcas...
May 13, 2013 | 12 minutes | Performance , Active Record Caching at a low level is a great option when the view is too dynamic to cache and you need something flexible that can work anywhere in the application. Here I show a variety of ways to use Rails.cache with Active Record.
Apr 27, 2013 | 18 minutes | Rack , APIs Here I demonstrate how to perform bulk API operations though a single request using Rack middleware. This is great if you need to trigger multiple actions at once such as if the user goes offline.
With the release of Rails 4.0.0.rc1 it's time to try it out and report any bugs. Here I walk you through the steps to upgrade a Rails 3.2 application to Rails 4.
With the release of Rails 4.0.0.rc1 it's time to try it out and report any bugs. Here I walk you through the steps to upgrade a Rails 3.2 application to Rails 4.
With the release of Rails 4.0.0.rc1 it's time to try it out and report any bugs. Here I walk you through the steps to upgrade a Rails 3.2 application to Rails 4.
#53 Handling Exceptions (revised) Apr 20, 2013 | 11 minutes | Controllers , Routing , Production , Rack By default, Rails will render a static error file when an exception occurs in production. Here you will learn how to fully customize this behavior and render dynamic error pages. Su...
Rails commands, such as generators, migrations, and tests, have a tendency to be slow because they need to load the Rails app each time. Here I show three tools to make this faster: Zeus, Spring, and Commands.
Good one. Under what circumstances would you recommend this over elastic search? The obvious benefit is that you don't need to install and keep up another piece of software just for indexing your content, but I'm concerned about the speed. Have anyone done a speed test between these t...
Not to be that guy, but as i usually see valid questions after the railscasts episodes, I'm wondering why Ryan doesn't seem to respond to any of them anymore. I love railscasts and have been a pro member since the beginning, but a lot of the time valid questions asked directly to Ryan...
#414 Batch API Requests pro Apr 27, 2013 | 18 minutes | Rack , APIs Here I demonstrate how to perform bulk API operations though a single request using Rack middleware. This is great if you need to trigger multiple actions at once such as if the user goes offline. Subscribe to Watch E...
The ActiveModel::Serializers gem can help you build JSON APIs through serializer objects. This provides a dedicated place to fully customize the JSON output.
Rails comes with a lot of different helper methods dealing with forms. Here's a quick tip on deciding which ones to use. If the form is editing a model, use the helper methods which do not end in the word "tag". If you aren't editing a model (such as a search form) then
Keeping passwords and secret tokens in source control is a security risk. Here I show how to move these settings out into a YAML configuration file which can be loaded in as a hash or environment variables.
#53 Handling Exceptions (revised) Apr 20, 2013 | 11 minutes | Controllers , Routing , Production , Rack By default, Rails will render a static error file when an exception occurs in production. Here you will learn how to fully customize this behavior and render dynamic error pages. Su...
Apr 10, 2013 | 17 minutes | Performance , Testing , Tools A slow test suite can put a damper on test-driven development. In this episode I show a variety of ways to optimize specs including: selective testing, preloading Rails, and testing outside of Rails.
PhantomJS allows us to test JavaScript without going through a browser window. Here I show how to do this using Capybara and Poltergeist. I also give some tips on handling database transactions and skipping javascript tests.
#53 Handling Exceptions (revised) Apr 20, 2013 | 11 minutes | Controllers , Routing , Production , Rack By default, Rails will render a static error file when an exception occurs in production. Here you will learn how to fully customize this behavior and render dynamic error pages. Su...
The cache_digests gem (also included in Rails 4) will automatically add a digest to the fragment cache key based on the template. If a template changes the cache will auto-expire. But watch out for the gotchas!
Split testing allows you to experiment with different designs and track conversions to determine which one is the most effective. Learn how to do A/B testing using Split in this episode.
Foreman can help manage multiple processes that your Rails app depends upon when running in development. It also provides an export command to move them into production.