RailsCastshttp://railscasts.com
Every other week you will be treated to a new, free RailsCasts episode featuring tips and tricks with Ruby on Rails, the popular web development framework. These screencasts are short and focus on one technique so you can quickly move on to applying it to your own project. The topics are geared toward the intermediate Rails developer, but beginners and experts will get something out of it as well. A Pro option is also available containing more screencasts each week. This is the full resolution version, a lower reoslution for mobile devices is also available.enSun, 16 Jun 2013 09:00:00 +0200Sun, 16 Jun 2013 09:00:00 +0200noEvery other week you will be treated to a new, free RailsCasts episode featuring tips and tricks with Ruby on Rails, the popular web development framework. These screencasts are short and focus on one technique so you can quickly move on to applying it to#417 Foundationhttp://railscasts.com/episodes/417-foundation
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.Sun, 16 Jun 2013 09:00:00 +0200foundationnoZURB'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.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.#415 Upgrading to Rails 4http://railscasts.com/episodes/415-upgrading-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.Mon, 06 May 2013 09:00:00 +0200upgrading-to-rails-4noWith 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.#412 Fast Rails Commandshttp://railscasts.com/episodes/412-fast-rails-commands
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.Thu, 04 Apr 2013 09:00:00 +0200fast-rails-commandsnoRails 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.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.#409 Active Model Serializershttp://railscasts.com/episodes/409-active-model-serializers
The ActiveModel::Serializers gem can help you build JSON APIs through serializer objects. This provides a dedicated place to fully customize the JSON output.Sat, 09 Mar 2013 09:00:00 +0100active-model-serializersnoThe ActiveModel::Serializers gem can help you build JSON APIs through serializer objects. This provides a dedicated place to fully customize the JSON output.The ActiveModel::Serializers gem can help you build JSON APIs through serializer objects. This provides a dedicated place to fully customize the JSON output.#406 Public Activityhttp://railscasts.com/episodes/406-public-activity
Learn how to easily add a user activity feed using the public_activity gem. Here I show both the default setup using model callbacks and a manual way to trigger activities.Wed, 13 Feb 2013 09:00:00 +0100public-activitynoLearn how to easily add a user activity feed using the public_activity gem. Here I show both the default setup using model callbacks and a manual way to trigger activities.Learn how to easily add a user activity feed using the public_activity gem. Here I show both the default setup using model callbacks and a manual way to trigger activities.#402 Better Errors & RailsPanelhttp://railscasts.com/episodes/402-better-errors-railspanel
Here we take a look at two tools to aid us in development: Better Errors which makes it easier than ever to debug exceptions, and RailsPanel, a Chrome extension to see Rails requests.Fri, 25 Jan 2013 09:00:00 +0100better-errors-railspanelnoHere we take a look at two tools to aid us in development: Better Errors which makes it easier than ever to debug exceptions, and RailsPanel, a Chrome extension to see Rails requests.Here we take a look at two tools to aid us in development: Better Errors which makes it easier than ever to debug exceptions, and RailsPanel, a Chrome extension to see Rails requests.#400 What's New in Rails 4http://railscasts.com/episodes/400-what-s-new-in-rails-4
Rails 4.0 is still unfinished, but it is shaping up to become a great release. Here I show how to setup a new Rails 4.0 (edge) application and walk through many of its new features.Fri, 04 Jan 2013 09:00:00 +0100what-s-new-in-rails-4noRails 4.0 is still unfinished, but it is shaping up to become a great release. Here I show how to setup a new Rails 4.0 (edge) application and walk through many of its new features.Rails 4.0 is still unfinished, but it is shaping up to become a great release. Here I show how to setup a new Rails 4.0 (edge) application and walk through many of its new features.#396 Importing CSV and Excelhttp://railscasts.com/episodes/396-importing-csv-and-excel
Allow users to import records into the database by uploading a CSV or Excel document. Here I show how to use Roo to parse these files and present a solution for validations.Sat, 08 Dec 2012 09:00:00 +0100importing-csv-and-excelnoAllow users to import records into the database by uploading a CSV or Excel document. Here I show how to use Roo to parse these files and present a solution for validations.Allow users to import records into the database by uploading a CSV or Excel document. Here I show how to use Roo to parse these files and present a solution for validations.#393 Guest User Recordhttp://railscasts.com/episodes/393-guest-user-record
Instead of presenting a sign up form to the user, consider creating a temporary guest record so the user can try out the application without filling in their information up front. They can then become a permanent member afterwards.Wed, 21 Nov 2012 09:00:00 +0100guest-user-recordnoInstead of presenting a sign up form to the user, consider creating a temporary guest record so the user can try out the application without filling in their information up front. They can then become a permanent member afterwards.Instead of presenting a sign up form to the user, consider creating a temporary guest record so the user can try out the application without filling in their information up front. They can then become a permanent member afterwards.#390 Turbolinkshttp://railscasts.com/episodes/390-turbolinks
Turbolinks can make your Rails app feel faster by using JavaScript to replace the page content when clicking a link. It will be default in new Rails 4.0 applications, but here I show how to use it in Rails 3 and mention some of the gotchas.Mon, 05 Nov 2012 09:00:00 +0100turbolinksnoTurbolinks can make your Rails app feel faster by using JavaScript to replace the page content when clicking a link. It will be default in new Rails 4.0 applications, but here I show how to use it in Rails 3 and mention some of the gotchas.Turbolinks can make your Rails app feel faster by using JavaScript to replace the page content when clicking a link. It will be default in new Rails 4.0 applications, but here I show how to use it in Rails 3 and mention some of the gotchas.#387 Cache Digestshttp://railscasts.com/episodes/387-cache-digests
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!Sat, 20 Oct 2012 09:00:00 +0200cache-digestsnoThe 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!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!#384 Exploring RubyGemshttp://railscasts.com/episodes/384-exploring-rubygems
RubyGems can make it easy to add a feature to a Rails application, but it can also cause headaches down the road. Here I give some tips on researching gems to decide which one to choose, or when to do it from scratch.Sun, 07 Oct 2012 09:00:00 +0200exploring-rubygemsnoRubyGems can make it easy to add a feature to a Rails application, but it can also cause headaches down the road. Here I give some tips on researching gems to decide which one to choose, or when to do it from scratch.RubyGems can make it easy to add a feature to a Rails application, but it can also cause headaches down the road. Here I give some tips on researching gems to decide which one to choose, or when to do it from scratch.#382 Tagginghttp://railscasts.com/episodes/382-tagging
There are several gems to help implement tags in a Rails app. Here I show you how to integrate acts-as-taggable-on and then show how to do it from scratch.Sat, 22 Sep 2012 09:00:00 +0200taggingnoThere are several gems to help implement tags in a Rails app. Here I show you how to integrate acts-as-taggable-on and then show how to do it from scratch.There are several gems to help implement tags in a Rails app. Here I show you how to integrate acts-as-taggable-on and then show how to do it from scratch.#378 FnordMetrichttp://railscasts.com/episodes/378-fnordmetric
FnordMetric allows you to chart events in real time. This is great for keeping track of user activity in your Rails app as demonstrated in this episode.Tue, 04 Sep 2012 09:00:00 +0200fnordmetricnoFnordMetric allows you to chart events in real time. This is great for keeping track of user activity in your Rails app as demonstrated in this episode.FnordMetric allows you to chart events in real time. This is great for keeping track of user activity in your Rails app as demonstrated in this episode.#376 JRuby Basicshttp://railscasts.com/episodes/376-jruby-basics
JRuby is a polished and stable Ruby implementation. Here I show the basics of setting it up and executing Java from within Ruby. I also see how it compares with MRI at running threads.Thu, 30 Aug 2012 09:00:00 +0200jruby-basicsnoJRuby is a polished and stable Ruby implementation. Here I show the basics of setting it up and executing Java from within Ruby. I also see how it compares with MRI at running threads.JRuby is a polished and stable Ruby implementation. Here I show the basics of setting it up and executing Java from within Ruby. I also see how it compares with MRI at running threads.#374 Image Manipulationhttp://railscasts.com/episodes/374-image-manipulation
Learn how to do extensive image manipulation with the ImageMagick commands. Also learn how RMagick can be used in combination with CarrierWave to process uploaded images.Thu, 16 Aug 2012 09:00:00 +0200image-manipulationnoLearn how to do extensive image manipulation with the ImageMagick commands. Also learn how RMagick can be used in combination with CarrierWave to process uploaded images.Learn how to do extensive image manipulation with the ImageMagick commands. Also learn how RMagick can be used in combination with CarrierWave to process uploaded images.#372 Bullethttp://railscasts.com/episodes/372-bullet
Bullet will notify you of database queries that can potentially be improved through eager loading or counter cache column. A variety of notification alerts are supported.Thu, 09 Aug 2012 09:00:00 +0200bulletnoBullet will notify you of database queries that can potentially be improved through eager loading or counter cache column. A variety of notification alerts are supported.Bullet will notify you of database queries that can potentially be improved through eager loading or counter cache column. A variety of notification alerts are supported.#370 Ransackhttp://railscasts.com/episodes/370-ransack
Ransack allows you to easily build complex search forms. It also helps in adding sortable links and building a dynamic advanced search page.Fri, 03 Aug 2012 09:00:00 +0200ransacknoRansack allows you to easily build complex search forms. It also helps in adding sortable links and building a dynamic advanced search page.Ransack allows you to easily build complex search forms. It also helps in adding sortable links and building a dynamic advanced search page.#368 MiniProfilerhttp://railscasts.com/episodes/368-miniprofiler
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.Tue, 24 Jul 2012 09:00:00 +0200miniprofilernoMiniProfiler 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.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.#366 Sidekiqhttp://railscasts.com/episodes/366-sidekiq
Sidekiq allows you to move jobs into the background for asynchronous processing. It uses threads instead of forks so it is much more efficient with memory compared to Resque.Wed, 18 Jul 2012 09:00:00 +0200sidekiqnoSidekiq allows you to move jobs into the background for asynchronous processing. It uses threads instead of forks so it is much more efficient with memory compared to Resque.Sidekiq allows you to move jobs into the background for asynchronous processing. It uses threads instead of forks so it is much more efficient with memory compared to Resque.#364 Active Record Reputation Systemhttp://railscasts.com/episodes/364-active-record-reputation-system
If you need to calculate an average user's rating or sum up a number of votes, consider using the activerecord-reputation-system gem. Here I will cover the basics and also briefly present a from-scratch solution.Mon, 09 Jul 2012 09:00:00 +0200active-record-reputation-systemnoIf you need to calculate an average user's rating or sum up a number of votes, consider using the activerecord-reputation-system gem. Here I will cover the basics and also briefly present a from-scratch solution.If you need to calculate an average user's rating or sum up a number of votes, consider using the activerecord-reputation-system gem. Here I will cover the basics and also briefly present a from-scratch solution.#362 Exporting CSV and Excelhttp://railscasts.com/episodes/362-exporting-csv-and-excel
As you will see it is easy to add a CSV export option to Rails. Here I also show how to export for Excel in a variety of formats.Mon, 02 Jul 2012 09:00:00 +0200exporting-csv-and-excelnoAs you will see it is easy to add a CSV export option to Rails. Here I also show how to export for Excel in a variety of formats.As you will see it is easy to add a CSV export option to Rails. Here I also show how to export for Excel in a variety of formats.#360 Facebook Authenticationhttp://railscasts.com/episodes/360-facebook-authentication
This will show how to create a new facebook application and configure it. Then add some authentication with the omniauth-facebook gem and top it off with a client-side authentication using the JavaScript SDK.Mon, 25 Jun 2012 09:00:00 +0200facebook-authenticationnoThis will show how to create a new facebook application and configure it. Then add some authentication with the omniauth-facebook gem and top it off with a client-side authentication using the JavaScript SDK.This will show how to create a new facebook application and configure it. Then add some authentication with the omniauth-facebook gem and top it off with a client-side authentication using the JavaScript SDK.#358 Brakemanhttp://railscasts.com/episodes/358-brakeman
The Brakeman gem will scan the Ruby code of a Rails application and alert you to common security vulnerabilities.Fri, 15 Jun 2012 09:00:00 +0200brakemannoThe Brakeman gem will scan the Ruby code of a Rails application and alert you to common security vulnerabilities.The Brakeman gem will scan the Ruby code of a Rails application and alert you to common security vulnerabilities.#356 Dangers of Session Hijackinghttp://railscasts.com/episodes/356-dangers-of-session-hijacking
If a user's authentication cookie is sent over an insecure connection it is vulnerable to session hijacking, or more specifically, sidejacking. Learn how this is done, and how you can prevent it.Fri, 08 Jun 2012 09:00:00 +0200dangers-of-session-hijackingnoIf a user's authentication cookie is sent over an insecure connection it is vulnerable to session hijacking, or more specifically, sidejacking. Learn how this is done, and how you can prevent it.If a user's authentication cookie is sent over an insecure connection it is vulnerable to session hijacking, or more specifically, sidejacking. Learn how this is done, and how you can prevent it.#354 Squeelhttp://railscasts.com/episodes/354-squeel
Squeel provides a comprehensive DSL for writing SQL queries in Ruby. It is built upon Arel giving you access to many of its powerful features.Wed, 30 May 2012 09:00:00 +0200squeelnoSqueel provides a comprehensive DSL for writing SQL queries in Ruby. It is built upon Arel giving you access to many of its powerful features.Squeel provides a comprehensive DSL for writing SQL queries in Ruby. It is built upon Arel giving you access to many of its powerful features.#352 Securing an APIhttp://railscasts.com/episodes/352-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.Wed, 23 May 2012 09:00:00 +0200securing-an-apinoThere 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.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.#350 REST API Versioninghttp://railscasts.com/episodes/350-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.Wed, 16 May 2012 09:00:00 +0200rest-api-versioningnoAPIs 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.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.#348 The Rails API Gemhttp://railscasts.com/episodes/348-the-rails-api-gem
It is often asked: Is Rails a good fit if I only need to serve an API? In this episode I show how to use the Rails API gem to create a slimmer Rails application designed to respond with JSON.Wed, 09 May 2012 09:00:00 +0200the-rails-api-gemnoIt is often asked: Is Rails a good fit if I only need to serve an API? In this episode I show how to use the Rails API gem to create a slimmer Rails application designed to respond with JSON.It is often asked: Is Rails a good fit if I only need to serve an API? In this episode I show how to use the Rails API gem to create a slimmer Rails application designed to respond with JSON.#347 Rubber and Amazon EC2http://railscasts.com/episodes/347-rubber-and-amazon-ec2
Deploying to Amazon EC2 allows you to scale an application quickly. Learn how to use Rubber to deploy to the cloud with just a few commands and monitor the cluster with various web tools.Thu, 03 May 2012 09:00:00 +0200rubber-and-amazon-ec2noDeploying to Amazon EC2 allows you to scale an application quickly. Learn how to use Rubber to deploy to the cloud with just a few commands and monitor the cluster with various web tools.Deploying to Amazon EC2 allows you to scale an application quickly. Learn how to use Rubber to deploy to the cloud with just a few commands and monitor the cluster with various web tools.#346 Wizard Forms with Wickedhttp://railscasts.com/episodes/346-wizard-forms-with-wicked
Creating a wizard form can be tricky in Rails. Learn how Wicked can help by turning a controller into a series of multiple steps.Thu, 03 May 2012 09:00:00 +0200wizard-forms-with-wickednoCreating a wizard form can be tricky in Rails. Learn how Wicked can help by turning a controller into a series of multiple steps.Creating a wizard form can be tricky in Rails. Learn how Wicked can help by turning a controller into a series of multiple steps.#344 Queue Classichttp://railscasts.com/episodes/344-queue-classic
PostgreSQL can act as a worker queue which can replace the need for a separate process to manage the background jobs. Here you will learn how to do this with the queue_classic gem.Tue, 24 Apr 2012 09:00:00 +0200queue-classicnoPostgreSQL can act as a worker queue which can replace the need for a separate process to manage the background jobs. Here you will learn how to do this with the queue_classic gem.PostgreSQL can act as a worker queue which can replace the need for a separate process to manage the background jobs. Here you will learn how to do this with the queue_classic gem.#342 Migrating to PostgreSQLhttp://railscasts.com/episodes/342-migrating-to-postgresql
Postgres is a feature-packed relational database that every Rails developer should consider using. Here you will learn how to install it, add it to a new application, and transition from an existing SQLite app using the "taps" gem.Tue, 17 Apr 2012 09:00:00 +0200migrating-to-postgresqlnoPostgres is a feature-packed relational database that every Rails developer should consider using. Here you will learn how to install it, add it to a new application, and transition from an existing SQLite app using the "taps" gem.Postgres is a feature-packed relational database that every Rails developer should consider using. Here you will learn how to install it, add it to a new application, and transition from an existing SQLite app using the "taps" gem.#340 DataTableshttp://railscasts.com/episodes/340-datatables
DataTables makes it easy to convert a plain HTML table into one with pagination, sorting, and searching - all done with JavaScript and jQuery. Here I show how to set this up and use a Rails application as the data source.Wed, 11 Apr 2012 09:00:00 +0200datatablesnoDataTables makes it easy to convert a plain HTML table into one with pagination, sorting, and searching - all done with JavaScript and jQuery. Here I show how to set this up and use a Rails application as the data source.DataTables makes it easy to convert a plain HTML table into one with pagination, sorting, and searching - all done with JavaScript and jQuery. Here I show how to set this up and use a Rails application as the data source.#338 Globalize3http://railscasts.com/episodes/338-globalize3
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.Wed, 04 Apr 2012 09:00:00 +0200globalize3noRails 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.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.#336 Copycopterhttp://railscasts.com/episodes/336-copycopter
Copycopter provides a nice interface that clients can use to edit the text in a Rails application. Learn how to deploy a Copycopter server using Heroku and integrate it in a Rails application through I18n.Tue, 27 Mar 2012 09:00:00 +0200copycopternoCopycopter provides a nice interface that clients can use to edit the text in a Rails application. Learn how to deploy a Copycopter server using Heroku and integrate it in a Rails application through I18n.Copycopter provides a nice interface that clients can use to edit the text in a Rails application. Learn how to deploy a Copycopter server using Heroku and integrate it in a Rails application through I18n.#334 Compass & CSS Spriteshttp://railscasts.com/episodes/334-compass-css-sprites
Compass improves the Sass experience by providing useful mixins, functions, and more. You will also learn how to make CSS sprites with it in this episode.Wed, 21 Mar 2012 08:00:00 +0100compass-css-spritesnoCompass improves the Sass experience by providing useful mixins, functions, and more. You will also learn how to make CSS sprites with it in this episode.Compass improves the Sass experience by providing useful mixins, functions, and more. You will also learn how to make CSS sprites with it in this episode.#332 Refinery CMS Basicshttp://railscasts.com/episodes/332-refinery-cms-basics
If you need to quickly create an informational site that can be easily edited, consider using a content management system. Here I show how to build a site using Refinery CMS.Wed, 14 Mar 2012 08:00:00 +0100refinery-cms-basicsnoIf you need to quickly create an informational site that can be easily edited, consider using a content management system. Here I show how to build a site using Refinery CMS.If you need to quickly create an informational site that can be easily edited, consider using a content management system. Here I show how to build a site using Refinery CMS.#330 Better Sass with Bourbonhttp://railscasts.com/episodes/330-better-sass-with-bourbon
If you are tired of the browser vendor prefixes in CSS, check out Bourbon. It provides Sass mixins and functions to make CSS more convenient.Wed, 07 Mar 2012 09:00:00 +0100better-sass-with-bourbonnoIf you are tired of the browser vendor prefixes in CSS, check out Bourbon. It provides Sass mixins and functions to make CSS more convenient.If you are tired of the browser vendor prefixes in CSS, check out Bourbon. It provides Sass mixins and functions to make CSS more convenient.#328 Twitter Bootstrap Basicshttp://railscasts.com/episodes/328-twitter-bootstrap-basics
Twitter Bootstrap can help make beautiful web apps quickly by providing you with useful CSS and JavaScript. Here you will learn how to include it into Rails with the twitter-bootstrap-rails gem.Tue, 28 Feb 2012 09:00:00 +0100twitter-bootstrap-basicsnoTwitter Bootstrap can help make beautiful web apps quickly by providing you with useful CSS and JavaScript. Here you will learn how to include it into Rails with the twitter-bootstrap-rails gem.Twitter Bootstrap can help make beautiful web apps quickly by providing you with useful CSS and JavaScript. Here you will learn how to include it into Rails with the twitter-bootstrap-rails gem.#326 ActiveAttrhttp://railscasts.com/episodes/326-activeattr
ActiveAttr provides what Active Model left out. If you need to create a table-less model with features similar to Active Record, watch this episode.Tue, 21 Feb 2012 09:00:00 +0100activeattrnoActiveAttr provides what Active Model left out. If you need to create a table-less model with features similar to Active Record, watch this episode.ActiveAttr provides what Active Model left out. If you need to create a table-less model with features similar to Active Record, watch this episode.#324 Passing Data to JavaScripthttp://railscasts.com/episodes/324-passing-data-to-javascript
There are a variety of ways to pass variables from a Rails application to JavaScript. Here I show three techniques: a script tag, a data attribute, and the Gon gem.Mon, 13 Feb 2012 09:00:00 +0100passing-data-to-javascriptnoThere are a variety of ways to pass variables from a Rails application to JavaScript. Here I show three techniques: a script tag, a data attribute, and the Gon gem.There are a variety of ways to pass variables from a Rails application to JavaScript. Here I show three techniques: a script tag, a data attribute, and the Gon gem.#322 RABLhttp://railscasts.com/episodes/322-rabl
RABL - Ruby API Builder Language - provides a DSL for generating JSON or XML responses in a Ruby application. Learn how to share and configure complex JSON data in this episode.Wed, 08 Feb 2012 09:00:00 +0100rablnoRABL - Ruby API Builder Language - provides a DSL for generating JSON or XML responses in a Ruby application. Learn how to share and configure complex JSON data in this episode.RABL - Ruby API Builder Language - provides a DSL for generating JSON or XML responses in a Ruby application. Learn how to share and configure complex JSON data in this episode.#320 Jbuilderhttp://railscasts.com/episodes/320-jbuilder
Jbuilder provides a DSL for generating JSON. It includes a template engine which allows you to create complex responses with helpers and conditions.Mon, 30 Jan 2012 09:00:00 +0100jbuildernoJbuilder provides a DSL for generating JSON. It includes a template engine which allows you to create complex responses with helpers and conditions.Jbuilder provides a DSL for generating JSON. It includes a template engine which allows you to create complex responses with helpers and conditions.#318 Upgrading to Rails 3.2http://railscasts.com/episodes/318-upgrading-to-rails-3-2
Rails 3.2 sports many new features including automatic explain queries, tagged logging, key-value store in Active Record, improved migration generator and more. Learn all about these new features in this episode.Mon, 23 Jan 2012 09:00:00 +0100upgrading-to-rails-3-2noRails 3.2 sports many new features including automatic explain queries, tagged logging, key-value store in Active Record, improved migration generator and more. Learn all about these new features in this episode.Rails 3.2 sports many new features including automatic explain queries, tagged logging, key-value store in Active Record, improved migration generator and more. Learn all about these new features in this episode.#316 Private Pubhttp://railscasts.com/episodes/316-private-pub
Private Pub makes it easier than ever to publish and subscribe to real-time events in a Rails app. You can use publish_to with a block of JavaScript or supply a hash for use with JSON.Mon, 16 Jan 2012 09:00:00 +0100private-pubnoPrivate Pub makes it easier than ever to publish and subscribe to real-time events in a Rails app. You can use publish_to with a block of JavaScript or supply a hash for use with JSON.Private Pub makes it easier than ever to publish and subscribe to real-time events in a Rails app. You can use publish_to with a block of JavaScript or supply a hash for use with JSON.#314 Pretty URLs with FriendlyIdhttp://railscasts.com/episodes/314-pretty-urls-with-friendlyid
If you are tired of model ids in the URL, overriding to_param can only get you so far. The friendly_id plugin can help by making it easy to generate a URL slug and maintain a history.Mon, 09 Jan 2012 09:00:00 +0100pretty-urls-with-friendlyidnoIf you are tired of model ids in the URL, overriding to_param can only get you so far. The friendly_id plugin can help by making it easy to generate a URL slug and maintain a history.If you are tired of model ids in the URL, overriding to_param can only get you so far. The friendly_id plugin can help by making it easy to generate a URL slug and maintain a history.#312 Sending HTML Emailhttp://railscasts.com/episodes/312-sending-html-email
HTML email can be difficult to code because any CSS should be made inline. Here I present a few tools for doing this including the premailer-rails3 and roadie gems.Mon, 02 Jan 2012 09:00:00 +0100sending-html-emailnoHTML email can be difficult to code because any CSS should be made inline. Here I present a few tools for doing this including the premailer-rails3 and roadie gems.HTML email can be difficult to code because any CSS should be made inline. Here I present a few tools for doing this including the premailer-rails3 and roadie gems.#310 Getting Started with Railshttp://railscasts.com/episodes/310-getting-started-with-rails
Learning Ruby on Rails can be overwhelming, especially if you are new to programming. Here I will take you on a tour through various resources to help get started with Rails.Mon, 26 Dec 2011 09:00:00 +0100getting-started-with-railsnoLearning Ruby on Rails can be overwhelming, especially if you are new to programming. Here I will take you on a tour through various resources to help get started with Rails.Learning Ruby on Rails can be overwhelming, especially if you are new to programming. Here I will take you on a tour through various resources to help get started with Rails.#308 Oh My ZSHhttp://railscasts.com/episodes/308-oh-my-zsh
As Rails developers, we frequently use the command line. Here I will show how to switch to Z Shell using Oh My ZSH including how to make your own theme and plugins.Mon, 19 Dec 2011 09:00:00 +0100oh-my-zshnoAs Rails developers, we frequently use the command line. Here I will show how to switch to Z Shell using Oh My ZSH including how to make your own theme and plugins.As Rails developers, we frequently use the command line. Here I will show how to switch to Z Shell using Oh My ZSH including how to make your own theme and plugins.#306 ElasticSearch Part 1http://railscasts.com/episodes/306-elasticsearch-part-1
Add full text searching using ElasticSearch and Tire. Here I will show the steps involved in adding this search to an existing application. This is the first part in a two part series.Mon, 12 Dec 2011 09:00:00 +0100elasticsearch-part-1noAdd full text searching using ElasticSearch and Tire. Here I will show the steps involved in adding this search to an existing application. This is the first part in a two part series.Add full text searching using ElasticSearch and Tire. Here I will show the steps involved in adding this search to an existing application. This is the first part in a two part series.#304 OmniAuth Identityhttp://railscasts.com/episodes/304-omniauth-identity
With the release of OmniAuth 1.0 there is a new Identity strategy which allows users to register/login with a password if they don't want to use an external provider.Mon, 05 Dec 2011 09:00:00 +0100omniauth-identitynoWith the release of OmniAuth 1.0 there is a new Identity strategy which allows users to register/login with a password if they don't want to use an external provider.With the release of OmniAuth 1.0 there is a new Identity strategy which allows users to register/login with a password if they don't want to use an external provider.#302 In-Place Editinghttp://railscasts.com/episodes/302-in-place-editing
Edit an attribute in-place without leaving a page using the Best In Place gem. Learn how to add validations and support for various field types.Mon, 28 Nov 2011 09:00:00 +0100in-place-editingnoEdit an attribute in-place without leaving a page using the Best In Place gem. Learn how to add validations and support for various field types.Edit an attribute in-place without leaving a page using the Best In Place gem. Learn how to add validations and support for various field types.#300 Contributing to Open Sourcehttp://railscasts.com/episodes/300-contributing-to-open-source
GitHub makes it easier than ever to contribute to open source with pull requests. Here I show how to submit a pull request to the VCR project.Mon, 21 Nov 2011 09:00:00 +0100contributing-to-open-sourcenoGitHub makes it easier than ever to contribute to open source with pull requests. Here I show how to submit a pull request to the VCR project.GitHub makes it easier than ever to contribute to open source with pull requests. Here I show how to submit a pull request to the VCR project.#298 Getting Started with Spreehttp://railscasts.com/episodes/298-getting-started-with-spree
Spree allows you to quickly turn a Rails project into a full eCommerce application. Here I show how to set it up and configure the look and feel of the store.Mon, 14 Nov 2011 09:00:00 +0100getting-started-with-spreenoSpree allows you to quickly turn a Rails project into a full eCommerce application. Here I show how to set it up and configure the look and feel of the store.Spree allows you to quickly turn a Rails project into a full eCommerce application. Here I show how to set it up and configure the look and feel of the store.#296 Mercury Editorhttp://railscasts.com/episodes/296-mercury-editor
Mercury allows you to edit a section of HTML directly in the web browser through a WYSIWYG editor. Here I show how to integrate Mercury into a Rails app and save the changes back to the database.Mon, 07 Nov 2011 09:00:00 +0100mercury-editornoMercury allows you to edit a section of HTML directly in the web browser through a WYSIWYG editor. Here I show how to integrate Mercury into a Rails app and save the changes back to the database.Mercury allows you to edit a section of HTML directly in the web browser through a WYSIWYG editor. Here I show how to integrate Mercury into a Rails app and save the changes back to the database.#294 Playing with PJAXhttp://railscasts.com/episodes/294-playing-with-pjax
PJAX allows you to quickly update a section of a page using AJAX with automatic pushState support. Here I show how to use both pjax_rails and rack-pjax gems.Mon, 31 Oct 2011 08:00:00 +0100playing-with-pjaxnoPJAX allows you to quickly update a section of a page using AJAX with automatic pushState support. Here I show how to use both pjax_rails and rack-pjax gems.PJAX allows you to quickly update a section of a page using AJAX with automatic pushState support. Here I show how to use both pjax_rails and rack-pjax gems.#292 Virtual Machines with Vagranthttp://railscasts.com/episodes/292-virtual-machines-with-vagrant
Vagrant allows you to run your Rails application and all of its dependencies in a portable, sharable environment. Use for development, set it up as a staging server, or experiment with a production setup.Mon, 24 Oct 2011 09:00:00 +0200virtual-machines-with-vagrantnoVagrant allows you to run your Rails application and all of its dependencies in a portable, sharable environment. Use for development, set it up as a staging server, or experiment with a production setup.Vagrant allows you to run your Rails application and all of its dependencies in a portable, sharable environment. Use for development, set it up as a staging server, or experiment with a production setup.#290 SOAP with Savonhttp://railscasts.com/episodes/290-soap-with-savon
Communicating with a SOAP API can be a daunting task. Savon makes this easier by presenting the SOAP API through a Ruby interface.Mon, 17 Oct 2011 09:00:00 +0200soap-with-savonnoCommunicating with a SOAP API can be a daunting task. Savon makes this easier by presenting the SOAP API through a Ruby interface.Communicating with a SOAP API can be a daunting task. Savon makes this easier by presenting the SOAP API through a Ruby interface.#288 Billing with Stripehttp://railscasts.com/episodes/288-billing-with-stripe
Stripe is a full-stack payment solution with very reasonable pricing and is easy to setup. See how to add it to a Rails application here. Currently only available in the US.Mon, 10 Oct 2011 09:00:00 +0200billing-with-stripenoStripe is a full-stack payment solution with very reasonable pricing and is easy to setup. See how to add it to a Rails application here. Currently only available in the US.Stripe is a full-stack payment solution with very reasonable pricing and is easy to setup. See how to add it to a Rails application here. Currently only available in the US.#286 Draperhttp://railscasts.com/episodes/286-draper
Clean up complex view logic using Draper. This gem provides decorators (much like presenters) which bundles view logic in an object oriented fashion. In this episode I do a step-by-step refactoring of a complex template into a decorator.Mon, 03 Oct 2011 09:00:00 +0200drapernoClean up complex view logic using Draper. This gem provides decorators (much like presenters) which bundles view logic in an object oriented fashion. In this episode I do a step-by-step refactoring of a complex template into a decorator.Clean up complex view logic using Draper. This gem provides decorators (much like presenters) which bundles view logic in an object oriented fashion. In this episode I do a step-by-step refactoring of a complex template into a decorator.#285 Sporkhttp://railscasts.com/episodes/285-spork
Spork improves the loading time of your test suite by starting up your Rails application once in the background. Use it with Guard for the ultimate combo in fast feedback while doing TDD.Mon, 26 Sep 2011 09:00:00 +0200sporknoSpork improves the loading time of your test suite by starting up your Rails application once in the background. Use it with Guard for the ultimate combo in fast feedback while doing TDD.Spork improves the loading time of your test suite by starting up your Rails application once in the background. Use it with Guard for the ultimate combo in fast feedback while doing TDD.#284 Active Adminhttp://railscasts.com/episodes/284-active-admin
Active Admin allows you to quickly build an admin interface with just a few commands. Not only does it look great, but it is very customizable as shown in this episode.Mon, 19 Sep 2011 09:00:00 +0200active-adminnoActive Admin allows you to quickly build an admin interface with just a few commands. Not only does it look great, but it is very customizable as shown in this episode.Active Admin allows you to quickly build an admin interface with just a few commands. Not only does it look great, but it is very customizable as shown in this episode.#283 Authentication with Sorceryhttp://railscasts.com/episodes/283-authentication-with-sorcery
Sorcery is a full-featured, modular solution to authentication which leaves the controller and view layers up to you.Mon, 12 Sep 2011 09:00:00 +0200authentication-with-sorcerynoSorcery is a full-featured, modular solution to authentication which leaves the controller and view layers up to you.Sorcery is a full-featured, modular solution to authentication which leaves the controller and view layers up to you.#282 Upgrading to Rails 3.1http://railscasts.com/episodes/282-upgrading-to-rails-3-1
It is incredibly easy to upgrade to Rails 3.1, but if you want to take advantage of the asset pipeline you will need to put in some extra effort. Have no fear because I walk you through each of the necessary steps in this episode.Mon, 05 Sep 2011 09:00:00 +0200upgrading-to-rails-3-1noIt is incredibly easy to upgrade to Rails 3.1, but if you want to take advantage of the asset pipeline you will need to put in some extra effort. Have no fear because I walk you through each of the necessary steps in this episode.It is incredibly easy to upgrade to Rails 3.1, but if you want to take advantage of the asset pipeline you will need to put in some extra effort. Have no fear because I walk you through each of the necessary steps in this episode.#281 Foremanhttp://railscasts.com/episodes/281-foreman
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.Mon, 29 Aug 2011 09:00:00 +0200foremannoForeman 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.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.#280 Pry with Railshttp://railscasts.com/episodes/280-pry-with-rails
Pry is an alternative to IRB and sports many great features. Here I show how to integrate it into a Rails app, and how it can aid in debugging.Mon, 22 Aug 2011 09:00:00 +0200pry-with-railsnoPry is an alternative to IRB and sports many great features. Here I show how to integrate it into a Rails app, and how it can aid in debugging.Pry is an alternative to IRB and sports many great features. Here I show how to integrate it into a Rails app, and how it can aid in debugging.#279 Understanding the Asset Pipelinehttp://railscasts.com/episodes/279-understanding-the-asset-pipeline
The asset pipeline is probably the biggest feature in Rails 3.1, but it can seem like magic at first. Here I dive into exactly how the asset pipeline works.Mon, 15 Aug 2011 09:00:00 +0200understanding-the-asset-pipelinenoThe asset pipeline is probably the biggest feature in Rails 3.1, but it can seem like magic at first. Here I dive into exactly how the asset pipeline works.The asset pipeline is probably the biggest feature in Rails 3.1, but it can seem like magic at first. Here I dive into exactly how the asset pipeline works.#278 Search with Sunspothttp://railscasts.com/episodes/278-search-with-sunspot
Sunspot makes it easy to do full text searching through Solr. Here I show how to search on various attributes and add facets for filtering the search further.Mon, 08 Aug 2011 09:00:00 +0200search-with-sunspotnoSunspot makes it easy to do full text searching through Solr. Here I show how to search on various attributes and add facets for filtering the search further.Sunspot makes it easy to do full text searching through Solr. Here I show how to search on various attributes and add facets for filtering the search further.#277 Mountable Engineshttp://railscasts.com/episodes/277-mountable-engines
Engines are receiving a major update in Rails 3.1. You can mount them at any path, embed assets, run generators and more. See how in this episode.Mon, 01 Aug 2011 09:00:00 +0200mountable-enginesnoEngines are receiving a major update in Rails 3.1. You can mount them at any path, embed assets, run generators and more. See how in this episode.Engines are receiving a major update in Rails 3.1. You can mount them at any path, embed assets, run generators and more. See how in this episode.#276 Testing Time & Web Requestshttp://railscasts.com/episodes/276-testing-time-web-requests
It can be difficult to test code that deals with the current time or an external web request. Here I show you how to do both using the Timecop and FakeWeb gems.Mon, 25 Jul 2011 09:00:00 +0200testing-time-web-requestsnoIt can be difficult to test code that deals with the current time or an external web request. Here I show you how to do both using the Timecop and FakeWeb gems.It can be difficult to test code that deals with the current time or an external web request. Here I show you how to do both using the Timecop and FakeWeb gems.#275 How I Testhttp://railscasts.com/episodes/275-how-i-test
Here I show how I would add tests to the password reset feature created in the previous episode. I use RSpec, Capybara, Factory Girl, and Guard to make request, model, and mailer specs.Mon, 18 Jul 2011 09:00:00 +0200how-i-testnoHere I show how I would add tests to the password reset feature created in the previous episode. I use RSpec, Capybara, Factory Girl, and Guard to make request, model, and mailer specs.Here I show how I would add tests to the password reset feature created in the previous episode. I use RSpec, Capybara, Factory Girl, and Guard to make request, model, and mailer specs.#274 Remember Me & Reset Passwordhttp://railscasts.com/episodes/274-remember-me-reset-password
It is easy to create authentication from scratch, but how do we extend it with more features? Here I add a "remember me" check box and a "forgotten password" link.Mon, 11 Jul 2011 09:00:00 +0200remember-me-reset-passwordnoIt is easy to create authentication from scratch, but how do we extend it with more features? Here I add a "remember me" check box and a "forgotten password" link.It is easy to create authentication from scratch, but how do we extend it with more features? Here I add a "remember me" check box and a "forgotten password" link.#273 Geocoderhttp://railscasts.com/episodes/273-geocoder
If you need to work with geographic data, Geocoder is an excellent gem for converting addresses and coordinates, finding nearby locations, determining distances, and more!Mon, 04 Jul 2011 09:00:00 +0200geocodernoIf you need to work with geographic data, Geocoder is an excellent gem for converting addresses and coordinates, finding nearby locations, determining distances, and more!If you need to work with geographic data, Geocoder is an excellent gem for converting addresses and coordinates, finding nearby locations, determining distances, and more!#272 Markdown with Redcarpethttp://railscasts.com/episodes/272-markdown-with-redcarpet
Redcarpet is an easy-to-use gem which interprets Markdown. Here I show how to customize it and add syntax highlighting through Pygments and Albino.Mon, 27 Jun 2011 09:00:00 +0200markdown-with-redcarpetnoRedcarpet is an easy-to-use gem which interprets Markdown. Here I show how to customize it and add syntax highlighting through Pygments and Albino.Redcarpet is an easy-to-use gem which interprets Markdown. Here I show how to customize it and add syntax highlighting through Pygments and Albino.#271 Resquehttp://railscasts.com/episodes/271-resque
Resque creates background jobs using Redis. It supports multiple queue and comes with an administration interface for monitoring and managing the queues.Mon, 20 Jun 2011 09:00:00 +0200resquenoResque creates background jobs using Redis. It supports multiple queue and comes with an administration interface for monitoring and managing the queues.Resque creates background jobs using Redis. It supports multiple queue and comes with an administration interface for monitoring and managing the queues.#270 Authentication in Rails 3.1http://railscasts.com/episodes/270-authentication-in-rails-3-1
Here I show off three new features in Rails 3.1 that will help with authentication: easier HTTP Basic, SecurePassword in the database, and forcing SSL.Mon, 13 Jun 2011 09:00:00 +0200authentication-in-rails-3-1noHere I show off three new features in Rails 3.1 that will help with authentication: easier HTTP Basic, SecurePassword in the database, and forcing SSL.Here I show off three new features in Rails 3.1 that will help with authentication: easier HTTP Basic, SecurePassword in the database, and forcing SSL.#269 Template Inheritancehttp://railscasts.com/episodes/269-template-inheritance
In Rails 3.1 the controller inheritance also applies to the view layer. Here I show how to add an application template which is shared by all views, and a lookup path for overriding templates based on the subdomain.Mon, 06 Jun 2011 09:00:00 +0200template-inheritancenoIn Rails 3.1 the controller inheritance also applies to the view layer. Here I show how to add an application template which is shared by all views, and a lookup path for overriding templates based on the subdomain.In Rails 3.1 the controller inheritance also applies to the view layer. Here I show how to add an application template which is shared by all views, and a lookup path for overriding templates based on the subdomain.#268 Sass Basicshttp://railscasts.com/episodes/268-sass-basics
Sass extends CSS with variables, nesting, mixins and more. Here I show how to convert plain CSS to SCSS in a Rails 3.1 app.Mon, 30 May 2011 09:00:00 +0200sass-basicsnoSass extends CSS with variables, nesting, mixins and more. Here I show how to convert plain CSS to SCSS in a Rails 3.1 app.Sass extends CSS with variables, nesting, mixins and more. Here I show how to convert plain CSS to SCSS in a Rails 3.1 app.#267 CoffeeScript Basicshttp://railscasts.com/episodes/267-coffeescript-basics
CoffeeScript allows you to write JavaScript in a concise, elegant fashion. Here I convert JavaScript code to CoffeeScript in a Rails 3.1 app.Mon, 23 May 2011 09:00:00 +0200coffeescript-basicsnoCoffeeScript allows you to write JavaScript in a concise, elegant fashion. Here I convert JavaScript code to CoffeeScript in a Rails 3.1 app.CoffeeScript allows you to write JavaScript in a concise, elegant fashion. Here I convert JavaScript code to CoffeeScript in a Rails 3.1 app.#266 HTTP Streaminghttp://railscasts.com/episodes/266-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.Mon, 16 May 2011 09:00:00 +0200http-streamingnoHTTP Streaming allows the browser to start processing the HTML response while the Rails app is still processing the rest of the request.HTTP Streaming allows the browser to start processing the HTML response while the Rails app is still processing the rest of the request.#265 Rails 3.1 Overviewhttp://railscasts.com/episodes/265-rails-3-1-overview
This is the first episode in a series covering Rails 3.1. Here I show how to install the beta and show some of the new features.Mon, 09 May 2011 09:00:00 +0200rails-3-1-overviewnoThis is the first episode in a series covering Rails 3.1. Here I show how to install the beta and show some of the new features.This is the first episode in a series covering Rails 3.1. Here I show how to install the beta and show some of the new features.#264 Guardhttp://railscasts.com/episodes/264-guard
Guard watches files and runs a command after a file is modified. This allows you to automatically run tests in the background, restart your development server, reload the browser, and more.Mon, 02 May 2011 09:00:00 +0200guardnoGuard watches files and runs a command after a file is modified. This allows you to automatically run tests in the background, restart your development server, reload the browser, and more.Guard watches files and runs a command after a file is modified. This allows you to automatically run tests in the background, restart your development server, reload the browser, and more.#263 Client Side Validationshttp://railscasts.com/episodes/263-client-side-validations
Showing validation errors inline as the user is filling out the form can lead to a better use experience. Learn how to do this using the Client Side Validations gem.Mon, 25 Apr 2011 09:00:00 +0200client-side-validationsnoShowing validation errors inline as the user is filling out the form can lead to a better use experience. Learn how to do this using the Client Side Validations gem.Showing validation errors inline as the user is filling out the form can lead to a better use experience. Learn how to do this using the Client Side Validations gem.#262 Trees with Ancestryhttp://railscasts.com/episodes/262-trees-with-ancestry
The Ancestry gem works like a tree but also allows us to fetch deeply nested messages in a single query. It provides a method to arrange them after fetching.Mon, 18 Apr 2011 09:00:00 +0200trees-with-ancestrynoThe Ancestry gem works like a tree but also allows us to fetch deeply nested messages in a single query. It provides a method to arrange them after fetching.The Ancestry gem works like a tree but also allows us to fetch deeply nested messages in a single query. It provides a method to arrange them after fetching.#261 Testing JavaScript with Jasminehttp://railscasts.com/episodes/261-testing-javascript-with-jasmine
Are you testing your JavaScript? Learn how to add specs using Jasmine. This episode also covers jQuery integration with jasmine-jquery.Mon, 11 Apr 2011 09:00:00 +0200testing-javascript-with-jasminenoAre you testing your JavaScript? Learn how to add specs using Jasmine. This episode also covers jQuery integration with jasmine-jquery.Are you testing your JavaScript? Learn how to add specs using Jasmine. This episode also covers jQuery integration with jasmine-jquery.#260 Messaging with Fayehttp://railscasts.com/episodes/260-messaging-with-faye
Faye is a subscription/publishing server which makes it easy to do push notifications within a Rails app.Mon, 04 Apr 2011 09:00:00 +0200messaging-with-fayenoFaye is a subscription/publishing server which makes it easy to do push notifications within a Rails app.Faye is a subscription/publishing server which makes it easy to do push notifications within a Rails app.#259 Decent Exposurehttp://railscasts.com/episodes/259-decent-exposure
The decent_exposure gem makes it convenient to share controller data with the view through methods instead of instance variables.Mon, 28 Mar 2011 09:00:00 +0200decent-exposurenoThe decent_exposure gem makes it convenient to share controller data with the view through methods instead of instance variables.The decent_exposure gem makes it convenient to share controller data with the view through methods instead of instance variables.#258 Token Fieldshttp://railscasts.com/episodes/258-token-fields
With the jQuery Tokeninput plugin it is easy to add an autocompleting list of entries for a many-to-many association.Mon, 21 Mar 2011 08:00:00 +0100token-fieldsnoWith the jQuery Tokeninput plugin it is easy to add an autocompleting list of entries for a many-to-many association.With the jQuery Tokeninput plugin it is easy to add an autocompleting list of entries for a many-to-many association.#257 Request Specs and Capybarahttp://railscasts.com/episodes/257-request-specs-and-capybara
Request specs in RSpec are a great way to ensure the entire application stack is working properly. Here I also show how to use capybara with integrated JavaScript testing using Selenium.Mon, 14 Mar 2011 08:00:00 +0100request-specs-and-capybaranoRequest specs in RSpec are a great way to ensure the entire application stack is working properly. Here I also show how to use capybara with integrated JavaScript testing using Selenium.Request specs in RSpec are a great way to ensure the entire application stack is working properly. Here I also show how to use capybara with integrated JavaScript testing using Selenium.#256 I18n Backendshttp://railscasts.com/episodes/256-i18n-backends
Internationalization is easy to add in Rails, but the YAML files can be difficult to manage. In this episode I show how to use Redis for managing the translations through a web interface.Mon, 07 Mar 2011 09:00:00 +0100i18n-backendsnoInternationalization is easy to add in Rails, but the YAML files can be difficult to manage. In this episode I show how to use Redis for managing the translations through a web interface.Internationalization is easy to add in Rails, but the YAML files can be difficult to manage. In this episode I show how to use Redis for managing the translations through a web interface.#255 Undo with Paper Trailhttp://railscasts.com/episodes/255-undo-with-paper-trail
Undo and redo behavior is easy to add with a versioning gem such as Paper Trail. Learn how to add an undo link to any model's flash message.Mon, 28 Feb 2011 09:00:00 +0100undo-with-paper-trailnoUndo and redo behavior is easy to add with a versioning gem such as Paper Trail. Learn how to add an undo link to any model's flash message.Undo and redo behavior is easy to add with a versioning gem such as Paper Trail. Learn how to add an undo link to any model's flash message.#254 Pagination with Kaminarihttp://railscasts.com/episodes/254-pagination-with-kaminari
If you need pagination in Rails 3 try out Kaminari. It is a clean, flexible solution which uses scopes to flow nicely with Active Record queries. Did I mention it also works with Mongoid?Mon, 21 Feb 2011 09:00:00 +0100pagination-with-kaminarinoIf you need pagination in Rails 3 try out Kaminari. It is a clean, flexible solution which uses scopes to flow nicely with Active Record queries. Did I mention it also works with Mongoid?If you need pagination in Rails 3 try out Kaminari. It is a clean, flexible solution which uses scopes to flow nicely with Active Record queries. Did I mention it also works with Mongoid?#253 CarrierWave File Uploadshttp://railscasts.com/episodes/253-carrierwave-file-uploads
CarrierWave makes it easy and clean to add file uploads to your application. It supports a variety of ORMs, frameworks and image processors.Mon, 14 Feb 2011 09:00:00 +0100carrierwave-file-uploadsnoCarrierWave makes it easy and clean to add file uploads to your application. It supports a variety of ORMs, frameworks and image processors.CarrierWave makes it easy and clean to add file uploads to your application. It supports a variety of ORMs, frameworks and image processors.#252 Metrics Metrics Metricshttp://railscasts.com/episodes/252-metrics-metrics-metrics
Metric Fu, Metrical, SimpleCov, Rails Best Practices, and more are covered in this episode on metrics.Mon, 07 Feb 2011 09:00:00 +0100metrics-metrics-metricsnoMetric Fu, Metrical, SimpleCov, Rails Best Practices, and more are covered in this episode on metrics.Metric Fu, Metrical, SimpleCov, Rails Best Practices, and more are covered in this episode on metrics.#251 MetaWhere & MetaSearchhttp://railscasts.com/episodes/251-metawhere-metasearch
MetaWhere provides a way to do complex find conditions without SQL in Active Record. MetaSearch makes it easy to create search forms with many find options.Mon, 31 Jan 2011 09:00:00 +0100metawhere-metasearchnoMetaWhere provides a way to do complex find conditions without SQL in Active Record. MetaSearch makes it easy to create search forms with many find options.MetaWhere provides a way to do complex find conditions without SQL in Active Record. MetaSearch makes it easy to create search forms with many find options.#250 Authentication from Scratchhttp://railscasts.com/episodes/250-authentication-from-scratch
Password authentication is not too complicated to make from scratch, it will also help to get a better understanding of how it works.Mon, 24 Jan 2011 09:00:00 +0100authentication-from-scratchnoPassword authentication is not too complicated to make from scratch, it will also help to get a better understanding of how it works.Password authentication is not too complicated to make from scratch, it will also help to get a better understanding of how it works.#249 Notifications in Rails 3http://railscasts.com/episodes/249-notifications-in-rails-3
Rails 3 comes with instrument support through the ActiveSupport::Notifications class. Call "subscribe" to listen to notifications, and "instrument" to send them.Mon, 17 Jan 2011 09:00:00 +0100notifications-in-rails-3noRails 3 comes with instrument support through the ActiveSupport::Notifications class. Call "subscribe" to listen to notifications, and "instrument" to send them.Rails 3 comes with instrument support through the ActiveSupport::Notifications class. Call "subscribe" to listen to notifications, and "instrument" to send them.#248 Offline Apps Part 2http://railscasts.com/episodes/248-offline-apps-part-2
Learn how to make a site usable offline with HTML 5 localStorage. This last part of the series covers jquery-tmpl and jquery-offline.Mon, 10 Jan 2011 09:00:00 +0100offline-apps-part-2noLearn how to make a site usable offline with HTML 5 localStorage. This last part of the series covers jquery-tmpl and jquery-offline.Learn how to make a site usable offline with HTML 5 localStorage. This last part of the series covers jquery-tmpl and jquery-offline.#247 Offline Apps Part 1http://railscasts.com/episodes/247-offline-apps-part-1
Learn how to make a site usable offline through an HTML 5 cache manifest. This first part of the series covers rack-offline and problems you may run into.Mon, 03 Jan 2011 09:00:00 +0100offline-apps-part-1noLearn how to make a site usable offline through an HTML 5 cache manifest. This first part of the series covers rack-offline and problems you may run into.Learn how to make a site usable offline through an HTML 5 cache manifest. This first part of the series covers rack-offline and problems you may run into.#246 AJAX History Statehttp://railscasts.com/episodes/246-ajax-history-state
The new pushState function in JavaScript allows us to change the full URL with AJAX. This means the back button, reloading, and bookmark support can be easily added.Mon, 27 Dec 2010 09:00:00 +0100ajax-history-statenoThe new pushState function in JavaScript allows us to change the full URL with AJAX. This means the back button, reloading, and bookmark support can be easily added.The new pushState function in JavaScript allows us to change the full URL with AJAX. This means the back button, reloading, and bookmark support can be easily added.#245 New Gem with Bundlerhttp://railscasts.com/episodes/245-new-gem-with-bundler
Creating new gems is easy with the `bundle gem` command. In this episode I will walk you through how this works.Mon, 20 Dec 2010 09:00:00 +0100new-gem-with-bundlernoCreating new gems is easy with the `bundle gem` command. In this episode I will walk you through how this works.Creating new gems is easy with the `bundle gem` command. In this episode I will walk you through how this works.#244 Gravatarhttp://railscasts.com/episodes/244-gravatar
Gravatar is a service for providing user avatars. See how easy it is to use in Rails in this episode.Mon, 13 Dec 2010 09:00:00 +0100gravatarnoGravatar is a service for providing user avatars. See how easy it is to use in Rails in this episode.Gravatar is a service for providing user avatars. See how easy it is to use in Rails in this episode.#243 Beanstalkd and Stalkerhttp://railscasts.com/episodes/243-beanstalkd-and-stalker
Beanstalk is a fast and easy way to queue background tasks. Stalker provides a nice wrapper interface for creating these jobs.Mon, 06 Dec 2010 09:00:00 +0100beanstalkd-and-stalkernoBeanstalk is a fast and easy way to queue background tasks. Stalker provides a nice wrapper interface for creating these jobs.Beanstalk is a fast and easy way to queue background tasks. Stalker provides a nice wrapper interface for creating these jobs.#242 Thorhttp://railscasts.com/episodes/242-thor
Thor is an alternative to Rake. It has better support for command line arguments and provides a way to add global scripts.Mon, 29 Nov 2010 09:00:00 +0100thornoThor is an alternative to Rake. It has better support for command line arguments and provides a way to add global scripts.Thor is an alternative to Rake. It has better support for command line arguments and provides a way to add global scripts.#241 Simple OmniAuthhttp://railscasts.com/episodes/241-simple-omniauth
Authentication is incredibly simple to add with just OmniAuth if you don't need username/password or multiple authentications per user.Mon, 22 Nov 2010 09:00:00 +0100simple-omniauthnoAuthentication is incredibly simple to add with just OmniAuth if you don't need username/password or multiple authentications per user.Authentication is incredibly simple to add with just OmniAuth if you don't need username/password or multiple authentications per user.#240 Search, Sort, Paginate with AJAXhttp://railscasts.com/episodes/240-search-sort-paginate-with-ajax
Many administration pages have search, sorting, and pagination on the index page. See how to add all of this including AJAX.Mon, 15 Nov 2010 09:00:00 +0100search-sort-paginate-with-ajaxnoMany administration pages have search, sorting, and pagination on the index page. See how to add all of this including AJAX.Many administration pages have search, sorting, and pagination on the index page. See how to add all of this including AJAX.#239 ActiveRecord::Relation Walkthroughhttp://railscasts.com/episodes/239-activerecord-relation-walkthrough
The new Active Record query methods in Rails 3 might seem like magic at first. But in this episode I unravel how it works by browsing the Rails 3 source code.Sun, 07 Nov 2010 08:00:00 +0100activerecord-relation-walkthroughnoThe new Active Record query methods in Rails 3 might seem like magic at first. But in this episode I unravel how it works by browsing the Rails 3 source code.The new Active Record query methods in Rails 3 might seem like magic at first. But in this episode I unravel how it works by browsing the Rails 3 source code.#238 Mongoidhttp://railscasts.com/episodes/238-mongoid
Mongoid is a polished, high-level Ruby gem for accessing MongoDB. Here I cover installation, adding fields, validations, associations, and keys.Mon, 01 Nov 2010 08:00:00 +0100mongoidnoMongoid is a polished, high-level Ruby gem for accessing MongoDB. Here I cover installation, adding fields, validations, associations, and keys.Mongoid is a polished, high-level Ruby gem for accessing MongoDB. Here I cover installation, adding fields, validations, associations, and keys.#237 Dynamic attr_accessiblehttp://railscasts.com/episodes/237-dynamic-attr-accessible
It is important to use attr_accessible for security with mass assignment, but what if you need it to be dynamic based on user permissions? See how in this episode.Mon, 25 Oct 2010 09:00:00 +0200dynamic-attr-accessiblenoIt is important to use attr_accessible for security with mass assignment, but what if you need it to be dynamic based on user permissions? See how in this episode.It is important to use attr_accessible for security with mass assignment, but what if you need it to be dynamic based on user permissions? See how in this episode.#236 OmniAuth Part 2http://railscasts.com/episodes/236-omniauth-part-2
In this episode we continue our look at integrating OmniAuth with devise. Here I show how to set up new users with validations.Wed, 13 Oct 2010 09:00:00 +0200omniauth-part-2noIn this episode we continue our look at integrating OmniAuth with devise. Here I show how to set up new users with validations.In this episode we continue our look at integrating OmniAuth with devise. Here I show how to set up new users with validations.#235 OmniAuth Part 1http://railscasts.com/episodes/235-omniauth-part-1
OmniAuth is an easy way to add many different authentication services to your app. In this episode we start integrating it with Devise.Mon, 11 Oct 2010 09:00:00 +0200omniauth-part-1noOmniAuth is an easy way to add many different authentication services to your app. In this episode we start integrating it with Devise.OmniAuth is an easy way to add many different authentication services to your app. In this episode we start integrating it with Devise.#234 SimpleFormhttp://railscasts.com/episodes/234-simple-form
Simple Form is a convenient way to generate forms with many options to customize the generated markup.Mon, 04 Oct 2010 09:00:00 +0200simple-formnoSimple Form is a convenient way to generate forms with many options to customize the generated markup.Simple Form is a convenient way to generate forms with many options to customize the generated markup.#233 Engage with Devisehttp://railscasts.com/episodes/233-engage-with-devise
Janrain Engage (aka RPX) makes it easy to support many authentication solutions through their one service.Mon, 27 Sep 2010 09:00:00 +0200engage-with-devisenoJanrain Engage (aka RPX) makes it easy to support many authentication solutions through their one service.Janrain Engage (aka RPX) makes it easy to support many authentication solutions through their one service.#232 Routing Walkthrough Part 2http://railscasts.com/episodes/232-routing-walkthrough-part-2
In this episode we continue our look into the Rails 3 router by exploring the Mapper class.Sun, 19 Sep 2010 09:00:00 +0200routing-walkthrough-part-2noIn this episode we continue our look into the Rails 3 router by exploring the Mapper class.In this episode we continue our look into the Rails 3 router by exploring the Mapper class.#231 Routing Walkthrough Part 1http://railscasts.com/episodes/231-routing-walkthrough
How does routing work internally in Rails 3? In this episode I'll walk you through the Rails code that makes routing possible.Mon, 13 Sep 2010 09:00:00 +0200routing-walkthroughnoHow does routing work internally in Rails 3? In this episode I'll walk you through the Rails code that makes routing possible.How does routing work internally in Rails 3? In this episode I'll walk you through the Rails code that makes routing possible.#230 Inherited Resourceshttp://railscasts.com/episodes/230-inherited-resources
Inherited Resource simplifies RESTful controllers by providing default actions which can be customized through inheritance.Mon, 06 Sep 2010 09:00:00 +0200inherited-resourcesnoInherited Resource simplifies RESTful controllers by providing default actions which can be customized through inheritance.Inherited Resource simplifies RESTful controllers by providing default actions which can be customized through inheritance.#229 Polling for Changeshttp://railscasts.com/episodes/229-polling-for-changes
If you have frequently changing data on the server side, it's helpful to automatically display this to the user as well. Here I show how to accomplish this with polling in jQuery.Mon, 30 Aug 2010 09:00:00 +0200polling-for-changesnoIf you have frequently changing data on the server side, it's helpful to automatically display this to the user as well. Here I show how to accomplish this with polling in jQuery.If you have frequently changing data on the server side, it's helpful to automatically display this to the user as well. Here I show how to accomplish this with polling in jQuery.#228 Sortable Table Columnshttp://railscasts.com/episodes/228-sortable-table-columns
Here I walk you through adding the ability to sort table columns in ascending or descending order by clicking the header.Mon, 23 Aug 2010 09:00:00 +0200sortable-table-columnsnoHere I walk you through adding the ability to sort table columns in ascending or descending order by clicking the header.Here I walk you through adding the ability to sort table columns in ascending or descending order by clicking the header.#227 Upgrading to Rails 3 Part 3http://railscasts.com/episodes/227-upgrading-to-rails-3-part-3
Here we finish up this upgrade series by removing all deprecation warnings and fixing some problems in the view.Mon, 16 Aug 2010 09:00:00 +0200upgrading-to-rails-3-part-3noHere we finish up this upgrade series by removing all deprecation warnings and fixing some problems in the view.Here we finish up this upgrade series by removing all deprecation warnings and fixing some problems in the view.#226 Upgrading to Rails 3 Part 2http://railscasts.com/episodes/226-upgrading-to-rails-3-part-2
Here we continue upgrading an application to Rails 3 by getting our specs up and running and going through the rails_upgrade plugin.Mon, 09 Aug 2010 09:00:00 +0200upgrading-to-rails-3-part-2noHere we continue upgrading an application to Rails 3 by getting our specs up and running and going through the rails_upgrade plugin.Here we continue upgrading an application to Rails 3 by getting our specs up and running and going through the rails_upgrade plugin.#225 Upgrading to Rails 3 Part 1http://railscasts.com/episodes/225-upgrading-to-rails-3-part-1
In the first part of this series on upgrading a Rails 2 application to Rails 3, we'll start off by setting up Rails 3.0 Release Candidate in a clean environment. The rails_upgrade plugin will then help us determine what needs upgrading.Mon, 02 Aug 2010 09:00:00 +0200upgrading-to-rails-3-part-1noIn the first part of this series on upgrading a Rails 2 application to Rails 3, we'll start off by setting up Rails 3.0 Release Candidate in a clean environment. The rails_upgrade plugin will then help us determine what needs upgrading.In the first part of this series on upgrading a Rails 2 application to Rails 3, we'll start off by setting up Rails 3.0 Release Candidate in a clean environment. The rails_upgrade plugin will then help us determine what needs upgrading.#224 Controllers in Rails 3http://railscasts.com/episodes/224-controllers-in-rails-3
Embedded flash notices, permanent cookies, and the details of respond_with are in this episode.Mon, 26 Jul 2010 09:00:00 +0200controllers-in-rails-3noEmbedded flash notices, permanent cookies, and the details of respond_with are in this episode.Embedded flash notices, permanent cookies, and the details of respond_with are in this episode.#223 Chartshttp://railscasts.com/episodes/223-charts
There are a number of libraries to help create graphs. Here I show how to integrate Highcharts into a Rails app.Mon, 19 Jul 2010 09:00:00 +0200chartsnoThere are a number of libraries to help create graphs. Here I show how to integrate Highcharts into a Rails app.There are a number of libraries to help create graphs. Here I show how to integrate Highcharts into a Rails app.#222 Rack in Rails 3http://railscasts.com/episodes/222-rack-in-rails-3
The router in Rails 3 is fully compatible with Rack. Learn how to embed Sinatra into an app, handle redirects, and improve on Rails Metal.Mon, 12 Jul 2010 09:00:00 +0200rack-in-rails-3noThe router in Rails 3 is fully compatible with Rack. Learn how to embed Sinatra into an app, handle redirects, and improve on Rails Metal.The router in Rails 3 is fully compatible with Rack. Learn how to embed Sinatra into an app, handle redirects, and improve on Rails Metal.#221 Subdomains in Rails 3http://railscasts.com/episodes/221-subdomains-in-rails-3
It is now possible to add subdomains to Rails 3 without the use of additional plugins. Learn how in this episode.Mon, 05 Jul 2010 09:00:00 +0200subdomains-in-rails-3noIt is now possible to add subdomains to Rails 3 without the use of additional plugins. Learn how in this episode.It is now possible to add subdomains to Rails 3 without the use of additional plugins. Learn how in this episode.#220 PDFKithttp://railscasts.com/episodes/220-pdfkit
Generating PDFs in plain Ruby can be a lot of work. Instead, consider generating PDFs from HTML using PDFKit.Mon, 28 Jun 2010 09:00:00 +0200pdfkitnoGenerating PDFs in plain Ruby can be a lot of work. Instead, consider generating PDFs from HTML using PDFKit.Generating PDFs in plain Ruby can be a lot of work. Instead, consider generating PDFs from HTML using PDFKit.#219 Active Modelhttp://railscasts.com/episodes/219-active-model
In Rails 3 the non-database functionality of Active Record is extracted out into Active Model. This allows you to cleanly add validations and other features to tableless models.Mon, 21 Jun 2010 09:00:00 +0200active-modelnoIn Rails 3 the non-database functionality of Active Record is extracted out into Active Model. This allows you to cleanly add validations and other features to tableless models.In Rails 3 the non-database functionality of Active Record is extracted out into Active Model. This allows you to cleanly add validations and other features to tableless models.#218 Making Generators in Rails 3http://railscasts.com/episodes/218-making-generators-in-rails-3
Generators in Rails 3 have been rewritten to use Thor which means the code used to create a generator is quite different. Here you will learn the new way to make generators in Rails 3.Mon, 14 Jun 2010 09:00:00 +0200making-generators-in-rails-3noGenerators in Rails 3 have been rewritten to use Thor which means the code used to create a generator is quite different. Here you will learn the new way to make generators in Rails 3.Generators in Rails 3 have been rewritten to use Thor which means the code used to create a generator is quite different. Here you will learn the new way to make generators in Rails 3.#217 Multistep Formshttp://railscasts.com/episodes/217-multistep-forms
See how to create a multi-step (wizard) form from scratch in this episode.Mon, 07 Jun 2010 09:00:00 +0200multistep-formsnoSee how to create a multi-step (wizard) form from scratch in this episode.See how to create a multi-step (wizard) form from scratch in this episode.#216 Generators in Rails 3http://railscasts.com/episodes/216-generators-in-rails-3
Generators in Rails 3 have been completely rewritten to be more modular. This allows you to customize any generator to fit your specific preferences.Mon, 31 May 2010 09:00:00 +0200generators-in-rails-3noGenerators in Rails 3 have been completely rewritten to be more modular. This allows you to customize any generator to fit your specific preferences.Generators in Rails 3 have been completely rewritten to be more modular. This allows you to customize any generator to fit your specific preferences.#215 Advanced Queries in Rails 3http://railscasts.com/episodes/215-advanced-queries-in-rails-3
Learn some advanced techniques regarding named scopes and get an introduction to Arel in this episode.Mon, 24 May 2010 09:00:00 +0200advanced-queries-in-rails-3noLearn some advanced techniques regarding named scopes and get an introduction to Arel in this episode.Learn some advanced techniques regarding named scopes and get an introduction to Arel in this episode.#214 A/B Testing with A/Bingohttp://railscasts.com/episodes/214-a-b-testing-with-a-bingo
A/B Testing (or Split Testing) is a way to experiment with variations in an application to see the most effective option.Mon, 17 May 2010 09:00:00 +0200a-b-testing-with-a-bingonoA/B Testing (or Split Testing) is a way to experiment with variations in an application to see the most effective option.A/B Testing (or Split Testing) is a way to experiment with variations in an application to see the most effective option.#213 Calendarshttp://railscasts.com/episodes/213-calendars
If dates play an important role in your application, consider adding a date picker or calendar view as shown in this episode.Mon, 10 May 2010 09:00:00 +0200calendarsnoIf dates play an important role in your application, consider adding a date picker or calendar view as shown in this episode.If dates play an important role in your application, consider adding a date picker or calendar view as shown in this episode.#212 Refactoring & Dynamic Delegatorhttp://railscasts.com/episodes/212-refactoring-dynamic-delegator
Learn how to refactor a set of conditional Active Record queries using a Dynamic Delegator.Mon, 03 May 2010 09:00:00 +0200refactoring-dynamic-delegatornoLearn how to refactor a set of conditional Active Record queries using a Dynamic Delegator.Learn how to refactor a set of conditional Active Record queries using a Dynamic Delegator.#211 Validations in Rails 3http://railscasts.com/episodes/211-validations-in-rails-3
Rails 3 offers several new additions to validations. Here learn how to make a custom error_messages partial, reflect on validations, and clean up complex validations in a model.Mon, 26 Apr 2010 09:00:00 +0200validations-in-rails-3noRails 3 offers several new additions to validations. Here learn how to make a custom error_messages partial, reflect on validations, and clean up complex validations in a model.Rails 3 offers several new additions to validations. Here learn how to make a custom error_messages partial, reflect on validations, and clean up complex validations in a model.#210 Customizing Devisehttp://railscasts.com/episodes/210-customizing-devise
Here we dive deeper into Devise by customizing how the views, routing, validations, and authentication works.Mon, 19 Apr 2010 09:00:00 +0200customizing-devisenoHere we dive deeper into Devise by customizing how the views, routing, validations, and authentication works.Here we dive deeper into Devise by customizing how the views, routing, validations, and authentication works.#209 Introducing Devisehttp://railscasts.com/episodes/209-introducing-devise
Devise is a full-featured authentication solution which handles all of the controller logic and form views for you. Learn how to set it up in this episode.Mon, 12 Apr 2010 09:00:00 +0200introducing-devisenoDevise is a full-featured authentication solution which handles all of the controller logic and form views for you. Learn how to set it up in this episode.Devise is a full-featured authentication solution which handles all of the controller logic and form views for you. Learn how to set it up in this episode.#208 ERB Blocks in Rails 3http://railscasts.com/episodes/208-erb-blocks-in-rails-3
Blocks in ERB templates are handled differently in Rails 3.0 Beta 2. Learn all about it in this episode.Mon, 05 Apr 2010 09:00:00 +0200erb-blocks-in-rails-3noBlocks in ERB templates are handled differently in Rails 3.0 Beta 2. Learn all about it in this episode.Blocks in ERB templates are handled differently in Rails 3.0 Beta 2. Learn all about it in this episode.#207 Syntax Highlightinghttp://railscasts.com/episodes/207-syntax-highlighting
Here I talk about three popular choices for syntax highlighting in Rails: CodeRay, Ultraviolet and Pygments.Mon, 29 Mar 2010 09:00:00 +0200syntax-highlightingnoHere I talk about three popular choices for syntax highlighting in Rails: CodeRay, Ultraviolet and Pygments.Here I talk about three popular choices for syntax highlighting in Rails: CodeRay, Ultraviolet and Pygments.#206 Action Mailer in Rails 3http://railscasts.com/episodes/206-action-mailer-in-rails-3
Action Mailer has been rewritten for Rails 3 providing a much cleaner API with its use of the Mail gem.Mon, 22 Mar 2010 08:00:00 +0100action-mailer-in-rails-3noAction Mailer has been rewritten for Rails 3 providing a much cleaner API with its use of the Mail gem.Action Mailer has been rewritten for Rails 3 providing a much cleaner API with its use of the Mail gem.#205 Unobtrusive Javascripthttp://railscasts.com/episodes/205-unobtrusive-javascript
Keep JavaScript out of your HTML content with unobtrusive JavaScript. Here I show how Rails 3 works with this best practice.Mon, 15 Mar 2010 08:00:00 +0100unobtrusive-javascriptnoKeep JavaScript out of your HTML content with unobtrusive JavaScript. Here I show how Rails 3 works with this best practice.Keep JavaScript out of your HTML content with unobtrusive JavaScript. Here I show how Rails 3 works with this best practice.#204 XSS Protection in Rails 3http://railscasts.com/episodes/204-xss-protection-in-rails-3
It is easy to be vulnerable to cross site scripting attacks in earlier versions of Rails, but Rails 3 solves this by automatically escaping unsafe input.Mon, 08 Mar 2010 09:00:00 +0100xss-protection-in-rails-3noIt is easy to be vulnerable to cross site scripting attacks in earlier versions of Rails, but Rails 3 solves this by automatically escaping unsafe input.It is easy to be vulnerable to cross site scripting attacks in earlier versions of Rails, but Rails 3 solves this by automatically escaping unsafe input.#203 Routing in Rails 3http://railscasts.com/episodes/203-routing-in-rails-3
Rails 3 sports a new routing interface. In this episode I show how to translate the old interface into the new one and show off a few new features.Mon, 01 Mar 2010 09:00:00 +0100routing-in-rails-3noRails 3 sports a new routing interface. In this episode I show how to translate the old interface into the new one and show off a few new features.Rails 3 sports a new routing interface. In this episode I show how to translate the old interface into the new one and show off a few new features.#202 Active Record Queries in Rails 3http://railscasts.com/episodes/202-active-record-queries-in-rails-3
Rails 3 introduces a new query interface for performing finds in Active Record. See how it works along with the changes in named scopes.Mon, 22 Feb 2010 09:00:00 +0100active-record-queries-in-rails-3noRails 3 introduces a new query interface for performing finds in Active Record. See how it works along with the changes in named scopes.Rails 3 introduces a new query interface for performing finds in Active Record. See how it works along with the changes in named scopes.#201 Bundlerhttp://railscasts.com/episodes/201-bundler
Bundler is the way to manage gem dependencies in Rails 3.0. Learn how to install gems and lock them down in this episode.Mon, 15 Feb 2010 09:00:00 +0100bundlernoBundler is the way to manage gem dependencies in Rails 3.0. Learn how to install gems and lock them down in this episode.Bundler is the way to manage gem dependencies in Rails 3.0. Learn how to install gems and lock them down in this episode.#200 Rails 3 Beta and RVMhttp://railscasts.com/episodes/200-rails-3-beta-and-rvm
Get started with Rails 3.0 Beta and install Ruby 1.9.1 using RVM: Ruby Version Manager. Stay tuned to the end for a challenge on giving back to open source.Mon, 08 Feb 2010 09:00:00 +0100rails-3-beta-and-rvmnoGet started with Rails 3.0 Beta and install Ruby 1.9.1 using RVM: Ruby Version Manager. Stay tuned to the end for a challenge on giving back to open source.Get started with Rails 3.0 Beta and install Ruby 1.9.1 using RVM: Ruby Version Manager. Stay tuned to the end for a challenge on giving back to open source.#199 Mobile Deviceshttp://railscasts.com/episodes/199-mobile-devices
Change the look and behavior of a Rails app on mobile devices. Also use jQTouch to build a native-looking interface.Mon, 01 Feb 2010 09:00:00 +0100mobile-devicesnoChange the look and behavior of a Rails app on mobile devices. Also use jQTouch to build a native-looking interface.Change the look and behavior of a Rails app on mobile devices. Also use jQTouch to build a native-looking interface.#198 Edit Multiple Individuallyhttp://railscasts.com/episodes/198-edit-multiple-individually
Use checkboxes to edit multiple records in one form, where each one has an individual set of form fields.Mon, 25 Jan 2010 09:00:00 +0100edit-multiple-individuallynoUse checkboxes to edit multiple records in one form, where each one has an individual set of form fields.Use checkboxes to edit multiple records in one form, where each one has an individual set of form fields.#197 Nested Model Form Part 2http://railscasts.com/episodes/197-nested-model-form-part-2
Add and remove nested model fields dynamically through JavaScript using either Prototype or jQuery.Mon, 18 Jan 2010 09:00:00 +0100nested-model-form-part-2noAdd and remove nested model fields dynamically through JavaScript using either Prototype or jQuery.Add and remove nested model fields dynamically through JavaScript using either Prototype or jQuery.#196 Nested Model Form Part 1http://railscasts.com/episodes/196-nested-model-form-part-1
Handling multiple models in a single form is much easier with the accepts_nested_attributes_for method. See how to use this method to handle nested model fields.Mon, 11 Jan 2010 09:00:00 +0100nested-model-form-part-1noHandling multiple models in a single form is much easier with the accepts_nested_attributes_for method. See how to use this method to handle nested model fields.Handling multiple models in a single form is much easier with the accepts_nested_attributes_for method. See how to use this method to handle nested model fields.#195 My Favorite Web Apps in 2009http://railscasts.com/episodes/195-my-favorite-web-apps-in-2009
Here I show several of my favorite web applications which I found most helpful as a Ruby developer over the past year.Mon, 04 Jan 2010 09:00:00 +0100my-favorite-web-apps-in-2009noHere I show several of my favorite web applications which I found most helpful as a Ruby developer over the past year.Here I show several of my favorite web applications which I found most helpful as a Ruby developer over the past year.#194 MongoDB and MongoMapperhttp://railscasts.com/episodes/194-mongodb-and-mongomapper
MongoDB is a document based database engine. Learn how to access it through MongoMapper in this episode.Mon, 28 Dec 2009 09:00:00 +0100mongodb-and-mongomappernoMongoDB is a document based database engine. Learn how to access it through MongoMapper in this episode.MongoDB is a document based database engine. Learn how to access it through MongoMapper in this episode.#193 Tableless Modelhttp://railscasts.com/episodes/193-tableless-model
If you want to create a model without a database backend, you simply need to define a couple methods in the model like I show in this episode.Mon, 21 Dec 2009 09:00:00 +0100tableless-modelnoIf you want to create a model without a database backend, you simply need to define a couple methods in the model like I show in this episode.If you want to create a model without a database backend, you simply need to define a couple methods in the model like I show in this episode.#192 Authorization with CanCanhttp://railscasts.com/episodes/192-authorization-with-cancan
CanCan is a simple authorization plugin that offers a lot of flexibility. See how to use it in this episode.Mon, 14 Dec 2009 09:00:00 +0100authorization-with-cancannoCanCan is a simple authorization plugin that offers a lot of flexibility. See how to use it in this episode.CanCan is a simple authorization plugin that offers a lot of flexibility. See how to use it in this episode.#191 Mechanizehttp://railscasts.com/episodes/191-mechanize
Mechanize extends the power of Nokogiri allowing you to interact with multiple pages on the site: click links, submit forms, etc.Mon, 07 Dec 2009 09:00:00 +0100mechanizenoMechanize extends the power of Nokogiri allowing you to interact with multiple pages on the site: click links, submit forms, etc.Mechanize extends the power of Nokogiri allowing you to interact with multiple pages on the site: click links, submit forms, etc.#190 Screen Scraping with Nokogirihttp://railscasts.com/episodes/190-screen-scraping-with-nokogiri
Screen scraping is easy with Nokogiri and SelectorGadget.Mon, 30 Nov 2009 09:00:00 +0100screen-scraping-with-nokogirinoScreen scraping is easy with Nokogiri and SelectorGadget.Screen scraping is easy with Nokogiri and SelectorGadget.#189 Embedded Associationhttp://railscasts.com/episodes/189-embedded-association
Learn how to set up a one-to-many or many-to-many association which is entirely embedded into a single column through a string or bitmask.Mon, 23 Nov 2009 09:00:00 +0100embedded-associationnoLearn how to set up a one-to-many or many-to-many association which is entirely embedded into a single column through a string or bitmask.Learn how to set up a one-to-many or many-to-many association which is entirely embedded into a single column through a string or bitmask.#188 Declarative Authorizationhttp://railscasts.com/episodes/188-declarative-authorization
Declarative authorization provides an advanced and powerful solution for role based authorization.Mon, 16 Nov 2009 09:00:00 +0100declarative-authorizationnoDeclarative authorization provides an advanced and powerful solution for role based authorization.Declarative authorization provides an advanced and powerful solution for role based authorization.#187 Testing Exceptionshttp://railscasts.com/episodes/187-testing-exceptions
Sometimes bad code slips into production and triggers a 500 error. Learn how to be notified of this and resolve it through integration tests.Mon, 09 Nov 2009 09:00:00 +0100testing-exceptionsnoSometimes bad code slips into production and triggers a 500 error. Learn how to be notified of this and resolve it through integration tests.Sometimes bad code slips into production and triggers a 500 error. Learn how to be notified of this and resolve it through integration tests.#186 Pickle with Cucumberhttp://railscasts.com/episodes/186-pickle-with-cucumber
Pickle adds many convenient Cucumber steps for generating models. Also learn about table diffs in this episode.Mon, 02 Nov 2009 09:00:00 +0100pickle-with-cucumbernoPickle adds many convenient Cucumber steps for generating models. Also learn about table diffs in this episode.Pickle adds many convenient Cucumber steps for generating models. Also learn about table diffs in this episode.#185 Formtastic Part 2http://railscasts.com/episodes/185-formtastic-part-2
Learn about some of the more advanced functionality of Formtastic including handling many-to-many associations, required fields, and styling.Mon, 26 Oct 2009 08:00:00 +0100formtastic-part-2noLearn about some of the more advanced functionality of Formtastic including handling many-to-many associations, required fields, and styling.Learn about some of the more advanced functionality of Formtastic including handling many-to-many associations, required fields, and styling.#184 Formtastic Part 1http://railscasts.com/episodes/184-formtastic-part-1
Formtastic is a concise way to generate form views. In this episode (part 1 of 2) I show how to generate both a simple form and a more complex one which is customized with options.Mon, 19 Oct 2009 09:00:00 +0200formtastic-part-1noFormtastic is a concise way to generate form views. In this episode (part 1 of 2) I show how to generate both a simple form and a more complex one which is customized with options.Formtastic is a concise way to generate form views. In this episode (part 1 of 2) I show how to generate both a simple form and a more complex one which is customized with options.#183 Gemcutter & Jewelerhttp://railscasts.com/episodes/183-gemcutter-jeweler
Gemcutter is a new service for hosting RubyGems, and Jeweler provides an automated way to release versions of a gem.Mon, 12 Oct 2009 09:00:00 +0200gemcutter-jewelernoGemcutter is a new service for hosting RubyGems, and Jeweler provides an automated way to release versions of a gem.Gemcutter is a new service for hosting RubyGems, and Jeweler provides an automated way to release versions of a gem.#182 Cropping Imageshttp://railscasts.com/episodes/182-cropping-images
Present a slick user interface for cropping image attachments using Jcrop and Paperclip.Mon, 05 Oct 2009 09:00:00 +0200cropping-imagesnoPresent a slick user interface for cropping image attachments using Jcrop and Paperclip.Present a slick user interface for cropping image attachments using Jcrop and Paperclip.#181 Include vs Joinshttp://railscasts.com/episodes/181-include-vs-joins
The :include and :joins options for the find method can be a little confusing because they are so similar. In this episode I show specifically when to use which option.Mon, 28 Sep 2009 09:00:00 +0200include-vs-joinsnoThe :include and :joins options for the find method can be a little confusing because they are so similar. In this episode I show specifically when to use which option.The :include and :joins options for the find method can be a little confusing because they are so similar. In this episode I show specifically when to use which option.#180 Finding Unused CSShttp://railscasts.com/episodes/180-finding-unused-css
Over time a CSS file can become large and filled with unused selectors. In this episode I show how to use the Deadweight gem to determine which CSS selects you can remove.Mon, 21 Sep 2009 09:00:00 +0200finding-unused-cssnoOver time a CSS file can become large and filled with unused selectors. In this episode I show how to use the Deadweight gem to determine which CSS selects you can remove.Over time a CSS file can become large and filled with unused selectors. In this episode I show how to use the Deadweight gem to determine which CSS selects you can remove.#179 Seed Datahttp://railscasts.com/episodes/179-seed-data
Rails 2.3.4 includes a conventional way to add seed data to your application - no more including it in the migration files.Mon, 14 Sep 2009 09:00:00 +0200seed-datanoRails 2.3.4 includes a conventional way to add seed data to your application - no more including it in the migration files.Rails 2.3.4 includes a conventional way to add seed data to your application - no more including it in the migration files.#178 7 Security Tipshttp://railscasts.com/episodes/178-seven-security-tips
Security is important! Here I show seven different security flaws which are common to Rails applications ranging from mass assignment to CSRF protection.Mon, 07 Sep 2009 09:00:00 +0200seven-security-tipsnoSecurity is important! Here I show seven different security flaws which are common to Rails applications ranging from mass assignment to CSRF protection.Security is important! Here I show seven different security flaws which are common to Rails applications ranging from mass assignment to CSRF protection.#177 Model Versioninghttp://railscasts.com/episodes/177-model-versioning
If you need to keep track of a model's history of changes and switch between versions, consider using the vestal_versions gem like I show in this episode.Mon, 31 Aug 2009 09:00:00 +0200model-versioningnoIf you need to keep track of a model's history of changes and switch between versions, consider using the vestal_versions gem like I show in this episode.If you need to keep track of a model's history of changes and switch between versions, consider using the vestal_versions gem like I show in this episode.#176 Searchlogichttp://railscasts.com/episodes/176-searchlogic
Searchlogic makes searching models easier than ever with its assortment of named scopes. In this episode I show you how to create simple and advanced searches.Mon, 24 Aug 2009 09:00:00 +0200searchlogicnoSearchlogic makes searching models easier than ever with its assortment of named scopes. In this episode I show you how to create simple and advanced searches.Searchlogic makes searching models easier than ever with its assortment of named scopes. In this episode I show you how to create simple and advanced searches.#175 AJAX History and Bookmarkshttp://railscasts.com/episodes/175-ajax-history-and-bookmarks
Browser page history and bookmarks do not usually work with AJAX requests, but in this episode I show you how to remedy this problem using a simple jQuery plugin.Mon, 17 Aug 2009 09:00:00 +0200ajax-history-and-bookmarksnoBrowser page history and bookmarks do not usually work with AJAX requests, but in this episode I show you how to remedy this problem using a simple jQuery plugin.Browser page history and bookmarks do not usually work with AJAX requests, but in this episode I show you how to remedy this problem using a simple jQuery plugin.#174 Pagination with AJAXhttp://railscasts.com/episodes/174-pagination-with-ajax
Learn an easy, unobtrusive way to add AJAX functionality to an existing set of pagination links using jQuery.Mon, 10 Aug 2009 09:00:00 +0200pagination-with-ajaxnoLearn an easy, unobtrusive way to add AJAX functionality to an existing set of pagination links using jQuery.Learn an easy, unobtrusive way to add AJAX functionality to an existing set of pagination links using jQuery.#173 Screen Scraping with ScrAPIhttp://railscasts.com/episodes/173-screen-scraping-with-scrapi
Screen scraping is not pretty, but sometimes it's your only option to extract content from an external site. In this episode I show you how to fetch product prices using ScrAPI.Mon, 03 Aug 2009 09:00:00 +0200screen-scraping-with-scrapinoScreen scraping is not pretty, but sometimes it's your only option to extract content from an external site. In this episode I show you how to fetch product prices using ScrAPI.Screen scraping is not pretty, but sometimes it's your only option to extract content from an external site. In this episode I show you how to fetch product prices using ScrAPI.#172 Touch and Cachehttp://railscasts.com/episodes/172-touch-and-cache
Rails 2.3.3 brings us a new feature called "touch". See how to use this to auto-expire associated caches in this episode.Mon, 27 Jul 2009 09:00:00 +0200touch-and-cachenoRails 2.3.3 brings us a new feature called "touch". See how to use this to auto-expire associated caches in this episode.Rails 2.3.3 brings us a new feature called "touch". See how to use this to auto-expire associated caches in this episode.#171 Delayed Jobhttp://railscasts.com/episodes/171-delayed-job
Is there a long running task which should be handled in the background? One of the best ways is using the delayed_job plugin like I show in this episode.Mon, 20 Jul 2009 09:00:00 +0200delayed-jobnoIs there a long running task which should be handled in the background? One of the best ways is using the delayed_job plugin like I show in this episode.Is there a long running task which should be handled in the background? One of the best ways is using the delayed_job plugin like I show in this episode.#170 OpenID with Authlogichttp://railscasts.com/episodes/170-openid-with-authlogic
Learn how to apply OpenID to an existing Authlogic setup as I show in this episode. This builds upon the app from episode 160.Mon, 13 Jul 2009 09:00:00 +0200openid-with-authlogicnoLearn how to apply OpenID to an existing Authlogic setup as I show in this episode. This builds upon the app from episode 160.Learn how to apply OpenID to an existing Authlogic setup as I show in this episode. This builds upon the app from episode 160.#169 Dynamic Page Cachinghttp://railscasts.com/episodes/169-dynamic-page-caching
Use JavaScript to allow dynamic content in a page cache. In this episode I show you how to insert the user-specific content into a page through JavaScript.Mon, 06 Jul 2009 09:00:00 +0200dynamic-page-cachingnoUse JavaScript to allow dynamic content in a page cache. In this episode I show you how to insert the user-specific content into a page through JavaScript.Use JavaScript to allow dynamic content in a page cache. In this episode I show you how to insert the user-specific content into a page through JavaScript.#168 Feed Parsinghttp://railscasts.com/episodes/168-feed-parsing
Learn two different techniques for parsing an RSS feed using Feedzirra in this episode!Mon, 29 Jun 2009 09:00:00 +0200feed-parsingnoLearn two different techniques for parsing an RSS feed using Feedzirra in this episode!Learn two different techniques for parsing an RSS feed using Feedzirra in this episode!#167 More on Virtual Attributeshttp://railscasts.com/episodes/167-more-on-virtual-attributes
Use a virtual attribute to implement a simple tagging feature. In this episode I show you how to assign virtual attributes through a callback instead of a setter method.Mon, 22 Jun 2009 09:00:00 +0200more-on-virtual-attributesnoUse a virtual attribute to implement a simple tagging feature. In this episode I show you how to assign virtual attributes through a callback instead of a setter method.Use a virtual attribute to implement a simple tagging feature. In this episode I show you how to assign virtual attributes through a callback instead of a setter method.#166 Metric Fuhttp://railscasts.com/episodes/166-metric-fu
Metric Fu is a compilation of several tools to help find areas of code that could be improved. In this episode I show you how to setup this tool on the railscasts.com source code.Mon, 15 Jun 2009 09:00:00 +0200metric-funoMetric Fu is a compilation of several tools to help find areas of code that could be improved. In this episode I show you how to setup this tool on the railscasts.com source code.Metric Fu is a compilation of several tools to help find areas of code that could be improved. In this episode I show you how to setup this tool on the railscasts.com source code.#165 Edit Multiplehttp://railscasts.com/episodes/165-edit-multiple
Use checkboxes to select multiple records and edit them all in one form as shown in this episode. With virtual attributes you can even edit values relatively!Mon, 08 Jun 2009 09:00:00 +0200edit-multiplenoUse checkboxes to select multiple records and edit them all in one form as shown in this episode. With virtual attributes you can even edit values relatively!Use checkboxes to select multiple records and edit them all in one form as shown in this episode. With virtual attributes you can even edit values relatively!#164 Cron in Rubyhttp://railscasts.com/episodes/164-cron-in-ruby
Cron is great for handling recurring tasks, but it is an external dependency with a crazy syntax. In this episode I show you how to use Whenever to create cron jobs with Ruby.Mon, 01 Jun 2009 09:00:00 +0200cron-in-rubynoCron is great for handling recurring tasks, but it is an external dependency with a crazy syntax. In this episode I show you how to use Whenever to create cron jobs with Ruby.Cron is great for handling recurring tasks, but it is an external dependency with a crazy syntax. In this episode I show you how to use Whenever to create cron jobs with Ruby.#163 Self-Referential Associationhttp://railscasts.com/episodes/163-self-referential-association
Creating a social networking site often requires a self-referential association on the User model to define friends/followers. In this episode I show how to do exactly that.Mon, 25 May 2009 09:00:00 +0200self-referential-associationnoCreating a social networking site often requires a self-referential association on the User model to define friends/followers. In this episode I show how to do exactly that.Creating a social networking site often requires a self-referential association on the User model to define friends/followers. In this episode I show how to do exactly that.#162 Tree Based Navigationhttp://railscasts.com/episodes/162-tree-based-navigation
The acts_as_tree plugin provides many methods for handling a tree based association. In this episode I show how to build a navigation system with tabs, subpages, and breadcrumbs.Mon, 18 May 2009 09:00:00 +0200tree-based-navigationnoThe acts_as_tree plugin provides many methods for handling a tree based association. In this episode I show how to build a navigation system with tabs, subpages, and breadcrumbs.The acts_as_tree plugin provides many methods for handling a tree based association. In this episode I show how to build a navigation system with tabs, subpages, and breadcrumbs.#161 Three Profiling Toolshttp://railscasts.com/episodes/161-three-profiling-tools
Ever want to know what Rails is doing under the hood during a request? In this episode I show three different profiling tools: New Relic RPM, FiveRuns TuneUp, and Rack::Bug.Mon, 11 May 2009 09:00:00 +0200three-profiling-toolsnoEver want to know what Rails is doing under the hood during a request? In this episode I show three different profiling tools: New Relic RPM, FiveRuns TuneUp, and Rack::Bug.Ever want to know what Rails is doing under the hood during a request? In this episode I show three different profiling tools: New Relic RPM, FiveRuns TuneUp, and Rack::Bug.#160 Authlogichttp://railscasts.com/episodes/160-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.Mon, 04 May 2009 09:00:00 +0200authlogicnoAuthentication 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.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.#159 More on Cucumberhttp://railscasts.com/episodes/159-more-on-cucumber
There is a lot more to Cucumber than I showed in an earlier episode. See how to refactor complex scenarios in this episode.Mon, 27 Apr 2009 09:00:00 +0200more-on-cucumbernoThere is a lot more to Cucumber than I showed in an earlier episode. See how to refactor complex scenarios in this episode.There is a lot more to Cucumber than I showed in an earlier episode. See how to refactor complex scenarios in this episode.#158 Factories not Fixtureshttp://railscasts.com/episodes/158-factories-not-fixtures
Fixtures are external dependencies which can make tests brittle and difficult to read. In this episode I show a better alternative using factories to generate the needed records.Mon, 20 Apr 2009 09:00:00 +0200factories-not-fixturesnoFixtures are external dependencies which can make tests brittle and difficult to read. In this episode I show a better alternative using factories to generate the needed records.Fixtures are external dependencies which can make tests brittle and difficult to read. In this episode I show a better alternative using factories to generate the needed records.#157 RSpec Matchers & Macroshttp://railscasts.com/episodes/157-rspec-matchers-macros
You can improve the readability and remove duplication in RSpec by adding matchers and macros. Learn how in this episode.Mon, 13 Apr 2009 09:00:00 +0200rspec-matchers-macrosnoYou can improve the readability and remove duplication in RSpec by adding matchers and macros. Learn how in this episode.You can improve the readability and remove duplication in RSpec by adding matchers and macros. Learn how in this episode.#156 Webrathttp://railscasts.com/episodes/156-webrat
If you prefer writing integration tests in ruby instead of Cucumber's plain english, consider interacting with Webrat directly as I show in this episode.Mon, 06 Apr 2009 09:00:00 +0200webratnoIf you prefer writing integration tests in ruby instead of Cucumber's plain english, consider interacting with Webrat directly as I show in this episode.If you prefer writing integration tests in ruby instead of Cucumber's plain english, consider interacting with Webrat directly as I show in this episode.#155 Beginning with Cucumberhttp://railscasts.com/episodes/155-beginning-with-cucumber
Cucumber is a high-level testing framework. In this episode we will create a new Rails application from scratch using behavior driven development.Mon, 30 Mar 2009 09:00:00 +0200beginning-with-cucumbernoCucumber is a high-level testing framework. In this episode we will create a new Rails application from scratch using behavior driven development.Cucumber is a high-level testing framework. In this episode we will create a new Rails application from scratch using behavior driven development.#154 Polymorphic Associationhttp://railscasts.com/episodes/154-polymorphic-association
Polymorphic associations can be perplexing. In this episode I show you how to set it up in Active Record and then move to the controller and view layer.Mon, 23 Mar 2009 08:00:00 +0100polymorphic-associationnoPolymorphic associations can be perplexing. In this episode I show you how to set it up in Active Record and then move to the controller and view layer.Polymorphic associations can be perplexing. In this episode I show you how to set it up in Active Record and then move to the controller and view layer.#153 PDFs with Prawnhttp://railscasts.com/episodes/153-pdfs-with-prawn
Prawn is an excellent Ruby library for generating PDF documents. Learn how to use it along with the Prawnto plugin in this episode.Mon, 16 Mar 2009 08:00:00 +0100pdfs-with-prawnnoPrawn is an excellent Ruby library for generating PDF documents. Learn how to use it along with the Prawnto plugin in this episode.Prawn is an excellent Ruby library for generating PDF documents. Learn how to use it along with the Prawnto plugin in this episode.#152 Rails 2.3 Extrashttp://railscasts.com/episodes/152-rails-2-3-extras
This episode finishes up this series on Rails 2.3. Here you will learn about several smaller additions in 2.3.Mon, 09 Mar 2009 08:00:00 +0100rails-2-3-extrasnoThis episode finishes up this series on Rails 2.3. Here you will learn about several smaller additions in 2.3.This episode finishes up this series on Rails 2.3. Here you will learn about several smaller additions in 2.3.#151 Rack Middlewarehttp://railscasts.com/episodes/151-rack-middleware
Rack middleware is a way to filter a request and response coming into your application. In this episode I show how to modify the response body using middleware.Mon, 02 Mar 2009 09:00:00 +0100rack-middlewarenoRack middleware is a way to filter a request and response coming into your application. In this episode I show how to modify the response body using middleware.Rack middleware is a way to filter a request and response coming into your application. In this episode I show how to modify the response body using middleware.#150 Rails Metalhttp://railscasts.com/episodes/150-rails-metal
Rails Metal is a way to bypass the standard Rails request process for a performance boost. In this episode you will learn how to shave off a few milliseconds using Metal.Mon, 23 Feb 2009 09:00:00 +0100rails-metalnoRails Metal is a way to bypass the standard Rails request process for a performance boost. In this episode you will learn how to shave off a few milliseconds using Metal.Rails Metal is a way to bypass the standard Rails request process for a performance boost. In this episode you will learn how to shave off a few milliseconds using Metal.#149 Rails Engineshttp://railscasts.com/episodes/149-rails-engines
Rails 2.3 brings us much of the same functionality as the Rails Engines plugin. Learn how to embed one application into another in this episode.Mon, 16 Feb 2009 09:00:00 +0100rails-enginesnoRails 2.3 brings us much of the same functionality as the Rails Engines plugin. Learn how to embed one application into another in this episode.Rails 2.3 brings us much of the same functionality as the Rails Engines plugin. Learn how to embed one application into another in this episode.#148 App Templates in Rails 2.3http://railscasts.com/episodes/148-app-templates-in-rails-2-3
In Rails 2.3 you can provide a template when generating a new Rails application. See how in this episode.Mon, 09 Feb 2009 09:00:00 +0100app-templates-in-rails-2-3noIn Rails 2.3 you can provide a template when generating a new Rails application. See how in this episode.In Rails 2.3 you can provide a template when generating a new Rails application. See how in this episode.#147 Sortable Listshttp://railscasts.com/episodes/147-sortable-lists
Creating drag & drop sortable lists is fairly easy using Prototype and the built in helper methods. See how in this episode.Mon, 02 Feb 2009 09:00:00 +0100sortable-listsnoCreating drag & drop sortable lists is fairly easy using Prototype and the built in helper methods. See how in this episode.Creating drag & drop sortable lists is fairly easy using Prototype and the built in helper methods. See how in this episode.#146 PayPal Express Checkouthttp://railscasts.com/episodes/146-paypal-express-checkout
PayPal Express Checkout is easy to add to an existing ordering system. See how in this episode.Mon, 26 Jan 2009 09:00:00 +0100paypal-express-checkoutnoPayPal Express Checkout is easy to add to an existing ordering system. See how in this episode.PayPal Express Checkout is easy to add to an existing ordering system. See how in this episode.#145 Integrating Active Merchanthttp://railscasts.com/episodes/145-integrating-active-merchant
In this episode I show how to add Active Merchant's functionality to a Rails application to make a fully-functional checkout process.Mon, 19 Jan 2009 09:00:00 +0100integrating-active-merchantnoIn this episode I show how to add Active Merchant's functionality to a Rails application to make a fully-functional checkout process.In this episode I show how to add Active Merchant's functionality to a Rails application to make a fully-functional checkout process.#144 Active Merchant Basicshttp://railscasts.com/episodes/144-active-merchant-basics
Active Merchant is a great library for handling credit card transactions. In this episode I will show you the basics of using it to communicate with PayPal's gateway.Mon, 12 Jan 2009 09:00:00 +0100active-merchant-basicsnoActive Merchant is a great library for handling credit card transactions. In this episode I will show you the basics of using it to communicate with PayPal's gateway.Active Merchant is a great library for handling credit card transactions. In this episode I will show you the basics of using it to communicate with PayPal's gateway.#143 PayPal Securityhttp://railscasts.com/episodes/143-paypal-security
This episode shows how to encrypt the variables passed to PayPal and verify the authenticity of the payment notifications (IPN).
Mon, 05 Jan 2009 09:00:00 +0100paypal-securitynoThis episode shows how to encrypt the variables passed to PayPal and verify the authenticity of the payment notifications (IPN). This episode shows how to encrypt the variables passed to PayPal and verify the authenticity of the payment notifications (IPN). #142 PayPal Notificationshttp://railscasts.com/episodes/142-paypal-notifications
PayPal's IPN (Instant Payment Notification) service allows your app to get confirmation when an order is processed. In this episode I use IPN to mark a cart as purchased.Mon, 29 Dec 2008 09:00:00 +0100paypal-notificationsnoPayPal's IPN (Instant Payment Notification) service allows your app to get confirmation when an order is processed. In this episode I use IPN to mark a cart as purchased.PayPal's IPN (Instant Payment Notification) service allows your app to get confirmation when an order is processed. In this episode I use IPN to mark a cart as purchased.#141 PayPal Basicshttp://railscasts.com/episodes/141-paypal-basics
This episode is the first in a series on handling the checkout process for orders. Here we show how to complete purchases through PayPal's Website Payments Standard service.Mon, 22 Dec 2008 09:00:00 +0100paypal-basicsnoThis episode is the first in a series on handling the checkout process for orders. Here we show how to complete purchases through PayPal's Website Payments Standard service.This episode is the first in a series on handling the checkout process for orders. Here we show how to complete purchases through PayPal's Website Payments Standard service.#140 Rails 2.2 Extrashttp://railscasts.com/episodes/140-rails-2-2-extras
This episode finishes up the Rails 2.2 series by showing a few miscellaneous additions that I find useful.Mon, 15 Dec 2008 09:00:00 +0100rails-2-2-extrasnoThis episode finishes up the Rails 2.2 series by showing a few miscellaneous additions that I find useful.This episode finishes up the Rails 2.2 series by showing a few miscellaneous additions that I find useful.#139 Nested Resourceshttp://railscasts.com/episodes/139-nested-resources
In this episode I show how to nest resources through routing and go into some new additions in Rails 2.2.Mon, 08 Dec 2008 09:00:00 +0100nested-resourcesnoIn this episode I show how to nest resources through routing and go into some new additions in Rails 2.2.In this episode I show how to nest resources through routing and go into some new additions in Rails 2.2.#138 I18nhttp://railscasts.com/episodes/138-i18n
Internationalization is one of the biggest additions in Rails 2.2. See how the basics work in this episode.Mon, 01 Dec 2008 09:00:00 +0100i18nnoInternationalization is one of the biggest additions in Rails 2.2. See how the basics work in this episode.Internationalization is one of the biggest additions in Rails 2.2. See how the basics work in this episode.#137 Memoizationhttp://railscasts.com/episodes/137-memoization
Rails 2.2 is out! In this episode I show how to upgrade Rails and then demonstrate one of the new additions: Memoization.Mon, 24 Nov 2008 09:00:00 +0100memoizationnoRails 2.2 is out! In this episode I show how to upgrade Rails and then demonstrate one of the new additions: Memoization.Rails 2.2 is out! In this episode I show how to upgrade Rails and then demonstrate one of the new additions: Memoization.#136 jQueryhttp://railscasts.com/episodes/136-jquery
How do you use jQuery with Rails? In this episode I redo episode #43 using jQuery instead of Prototype/RJS.Mon, 17 Nov 2008 09:00:00 +0100jquerynoHow do you use jQuery with Rails? In this episode I redo episode #43 using jQuery instead of Prototype/RJS.How do you use jQuery with Rails? In this episode I redo episode #43 using jQuery instead of Prototype/RJS.#135 Making a Gemhttp://railscasts.com/episodes/135-making-a-gem
Want to create a Ruby Gem instead of a Rails plugin? In this episode I will walk you through creating a gem to extend Rails.Mon, 10 Nov 2008 09:00:00 +0100making-a-gemnoWant to create a Ruby Gem instead of a Rails plugin? In this episode I will walk you through creating a gem to extend Rails.Want to create a Ruby Gem instead of a Rails plugin? In this episode I will walk you through creating a gem to extend Rails.#134 Papercliphttp://railscasts.com/episodes/134-paperclip
Need to add image attachments to a model? See how with paperclip in this episode.Mon, 03 Nov 2008 09:00:00 +0100paperclipnoNeed to add image attachments to a model? See how with paperclip in this episode.Need to add image attachments to a model? See how with paperclip in this episode.#133 Capistrano Taskshttp://railscasts.com/episodes/133-capistrano-tasks
Do you know how to make Capistrano tasks? See how to change default deployment behavior with custom tasks in this episode.Mon, 27 Oct 2008 08:00:00 +0100capistrano-tasksnoDo you know how to make Capistrano tasks? See how to change default deployment behavior with custom tasks in this episode.Do you know how to make Capistrano tasks? See how to change default deployment behavior with custom tasks in this episode.#132 Helpers Outside Viewshttp://railscasts.com/episodes/132-helpers-outside-views
Have you ever wanted to access helper methods outside of the view layer? In this episode I show you a couple ways to do just that.Mon, 20 Oct 2008 09:00:00 +0200helpers-outside-viewsnoHave you ever wanted to access helper methods outside of the view layer? In this episode I show you a couple ways to do just that.Have you ever wanted to access helper methods outside of the view layer? In this episode I show you a couple ways to do just that.#131 Going Backhttp://railscasts.com/episodes/131-going-back
This episode demonstrates a couple ways to redirect the user back to a previous page. Applying this to your site can help minimize the user's need to press the back button.Sun, 12 Oct 2008 09:00:00 +0200going-backnoThis episode demonstrates a couple ways to redirect the user back to a previous page. Applying this to your site can help minimize the user's need to press the back button.This episode demonstrates a couple ways to redirect the user back to a previous page. Applying this to your site can help minimize the user's need to press the back button.#130 Monitoring with Godhttp://railscasts.com/episodes/130-monitoring-with-god
Need to ensure your background processes stay up and running and don't use too many resources? Check out the god gem as shown in this episode.Sun, 05 Oct 2008 09:00:00 +0200monitoring-with-godnoNeed to ensure your background processes stay up and running and don't use too many resources? Check out the god gem as shown in this episode.Need to ensure your background processes stay up and running and don't use too many resources? Check out the god gem as shown in this episode.#129 Custom Daemonhttp://railscasts.com/episodes/129-custom-daemon
Creating a custom daemon to handle background tasks is surprisingly simple. In this episode I will make a daemon to handle dynamically scheduled tasks.Mon, 29 Sep 2008 09:00:00 +0200custom-daemonnoCreating a custom daemon to handle background tasks is surprisingly simple. In this episode I will make a daemon to handle dynamically scheduled tasks.Creating a custom daemon to handle background tasks is surprisingly simple. In this episode I will make a daemon to handle dynamically scheduled tasks.#128 Starling and Worklinghttp://railscasts.com/episodes/128-starling-and-workling
Need to run a task frequently in the background? Starling and Workling is a killer combination for doing just that. See how in this episode.Mon, 22 Sep 2008 09:00:00 +0200starling-and-worklingnoNeed to run a task frequently in the background? Starling and Workling is a killer combination for doing just that. See how in this episode.Need to run a task frequently in the background? Starling and Workling is a killer combination for doing just that. See how in this episode.#127 Rake in Backgroundhttp://railscasts.com/episodes/127-rake-in-background
In need of a background process? You may be able to accomplish this with a simple Rake task. See how in this episode.Mon, 15 Sep 2008 09:00:00 +0200rake-in-backgroundnoIn need of a background process? You may be able to accomplish this with a simple Rake task. See how in this episode.In need of a background process? You may be able to accomplish this with a simple Rake task. See how in this episode.#126 Populating a Databasehttp://railscasts.com/episodes/126-populating-a-database
Have you ever wanted to fill up a database with a lot of test data? See how to do that in this episode using the populator and faker gems.Mon, 08 Sep 2008 09:00:00 +0200populating-a-databasenoHave you ever wanted to fill up a database with a lot of test data? See how to do that in this episode using the populator and faker gems.Have you ever wanted to fill up a database with a lot of test data? See how to do that in this episode using the populator and faker gems.#125 Dynamic Layoutshttp://railscasts.com/episodes/125-dynamic-layouts
Discover how to dynamically change the layout using content in the database. Check out this episode for details.Mon, 01 Sep 2008 09:00:00 +0200dynamic-layoutsnoDiscover how to dynamically change the layout using content in the database. Check out this episode for details.Discover how to dynamically change the layout using content in the database. Check out this episode for details.#124 Beta Invitationshttp://railscasts.com/episodes/124-beta-invitations
You know those invitation systems where a given user can invite a number of other people to join? That's what I show you how to make in this episode.Mon, 25 Aug 2008 09:00:00 +0200beta-invitationsnoYou know those invitation systems where a given user can invite a number of other people to join? That's what I show you how to make in this episode.You know those invitation systems where a given user can invite a number of other people to join? That's what I show you how to make in this episode.#123 Subdomainshttp://railscasts.com/episodes/123-subdomains
Learn how to unleash the full potential of subdomains with the subdomain-fu Rails plugin in this episode.Mon, 18 Aug 2008 09:00:00 +0200subdomainsnoLearn how to unleash the full potential of subdomains with the subdomain-fu Rails plugin in this episode.Learn how to unleash the full potential of subdomains with the subdomain-fu Rails plugin in this episode.#122 Passenger in Developmenthttp://railscasts.com/episodes/122-passenger-in-development
Tired of juggling multiple Rails apps around with script/server? See how to set up Passenger in development so each one has its own local domain name.Mon, 11 Aug 2008 09:00:00 +0200passenger-in-developmentnoTired of juggling multiple Rails apps around with script/server? See how to set up Passenger in development so each one has its own local domain name.Tired of juggling multiple Rails apps around with script/server? See how to set up Passenger in development so each one has its own local domain name.#121 Non Active Record Modelhttp://railscasts.com/episodes/121-non-active-record-model
This episode will show you how to make a model which isn't based on Active Record. You may want to do this if a resource isn't backed by the database.Mon, 04 Aug 2008 09:00:00 +0200non-active-record-modelnoThis episode will show you how to make a model which isn't based on Active Record. You may want to do this if a resource isn't backed by the database.This episode will show you how to make a model which isn't based on Active Record. You may want to do this if a resource isn't backed by the database.#120 Thinking Sphinxhttp://railscasts.com/episodes/120-thinking-sphinx
If you need a full text search engine, Thinking Sphinx is a great solution. See why in this episode.Mon, 28 Jul 2008 09:00:00 +0200thinking-sphinxnoIf you need a full text search engine, Thinking Sphinx is a great solution. See why in this episode.If you need a full text search engine, Thinking Sphinx is a great solution. See why in this episode.#119 Session Based Modelhttp://railscasts.com/episodes/119-session-based-model
If you have a lot of logic associated with the data inside a session, you'll need some central location to put this logic. See how to create a session based model in this episode.Mon, 21 Jul 2008 09:00:00 +0200session-based-modelnoIf you have a lot of logic associated with the data inside a session, you'll need some central location to put this logic. See how to create a session based model in this episode.If you have a lot of logic associated with the data inside a session, you'll need some central location to put this logic. See how to create a session based model in this episode.#118 Liquidhttp://railscasts.com/episodes/118-liquid
Liquid is a safe way to provide a powerful template language to the site's users. See how in this episode.Mon, 14 Jul 2008 09:00:00 +0200liquidnoLiquid is a safe way to provide a powerful template language to the site's users. See how in this episode.Liquid is a safe way to provide a powerful template language to the site's users. See how in this episode.#117 Semi-Static Pageshttp://railscasts.com/episodes/117-semi-static-pages
Static pages can sometimes be a little awkward to add to a Rails app. See a couple different solutions to this problem in this episode.Mon, 07 Jul 2008 09:00:00 +0200semi-static-pagesnoStatic pages can sometimes be a little awkward to add to a Rails app. See a couple different solutions to this problem in this episode.Static pages can sometimes be a little awkward to add to a Rails app. See a couple different solutions to this problem in this episode.#116 Seleniumhttp://railscasts.com/episodes/116-selenium
Selenium is a great way to test your app automatically through a browser. See how it works in this episode.Mon, 30 Jun 2008 09:00:00 +0200seleniumnoSelenium is a great way to test your app automatically through a browser. See how it works in this episode.Selenium is a great way to test your app automatically through a browser. See how it works in this episode.#115 Caching in Rails 2.1http://railscasts.com/episodes/115-caching-in-rails-2-1
Rails 2.1 brings some new caching features which makes it very easy to cache any values including models. See how in this episode.Mon, 23 Jun 2008 09:00:00 +0200caching-in-rails-2-1noRails 2.1 brings some new caching features which makes it very easy to cache any values including models. See how in this episode.Rails 2.1 brings some new caching features which makes it very easy to cache any values including models. See how in this episode.#114 Endless Pagehttp://railscasts.com/episodes/114-endless-page
Ever wondered how some sites seem to have endless scrolling page with no pagination? Find out how easy it is to do this in Rails in this episode.Mon, 16 Jun 2008 09:00:00 +0200endless-pagenoEver wondered how some sites seem to have endless scrolling page with no pagination? Find out how easy it is to do this in Rails in this episode.Ever wondered how some sites seem to have endless scrolling page with no pagination? Find out how easy it is to do this in Rails in this episode.#113 Contributing to Rails with Githttp://railscasts.com/episodes/113-contributing-to-rails-with-git
If you want Rails to behave a certain way, try changing it and submitting a patch. This episode will show how to do exactly this using Git.Mon, 09 Jun 2008 09:00:00 +0200contributing-to-rails-with-gitnoIf you want Rails to behave a certain way, try changing it and submitting a patch. This episode will show how to do exactly this using Git.If you want Rails to behave a certain way, try changing it and submitting a patch. This episode will show how to do exactly this using Git.#112 Anonymous Scopeshttp://railscasts.com/episodes/112-anonymous-scopes
The scoped method allows you to generate named scopes on the fly. In this episode I show how to use anonymous scopes to improve the conditional logic which was used in the previous episode on advanced search form.Mon, 02 Jun 2008 09:00:00 +0200anonymous-scopesnoThe scoped method allows you to generate named scopes on the fly. In this episode I show how to use anonymous scopes to improve the conditional logic which was used in the previous episode on advanced search form.The scoped method allows you to generate named scopes on the fly. In this episode I show how to use anonymous scopes to improve the conditional logic which was used in the previous episode on advanced search form.#111 Advanced Search Formhttp://railscasts.com/episodes/111-advanced-search-form
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.Mon, 26 May 2008 09:00:00 +0200advanced-search-formnoIf 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.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.#110 Gem Dependencieshttp://railscasts.com/episodes/110-gem-dependencies
In Rails 2.1 we now have the ability to set gem dependencies. Now it's easier than ever to specify which ruby gems our rails app relies on.Fri, 23 May 2008 09:00:00 +0200gem-dependenciesnoIn Rails 2.1 we now have the ability to set gem dependencies. Now it's easier than ever to specify which ruby gems our rails app relies on.In Rails 2.1 we now have the ability to set gem dependencies. Now it's easier than ever to specify which ruby gems our rails app relies on.#109 Tracking Attribute Changeshttp://railscasts.com/episodes/109-tracking-attribute-changes
Rails 2.1 keeps track of the changes you make to a model's attributes. It also allows you to see what the previous value was. But watch out for the gotcha! See this episode for details.Wed, 21 May 2008 09:00:00 +0200tracking-attribute-changesnoRails 2.1 keeps track of the changes you make to a model's attributes. It also allows you to see what the previous value was. But watch out for the gotcha! See this episode for details.Rails 2.1 keeps track of the changes you make to a model's attributes. It also allows you to see what the previous value was. But watch out for the gotcha! See this episode for details.#108 named_scopehttp://railscasts.com/episodes/108-named-scope
The named_scope method in Rails 2.1 makes performing finds on models very elegant and convenient. See how in this episode.Mon, 19 May 2008 09:00:00 +0200named-scopenoThe named_scope method in Rails 2.1 makes performing finds on models very elegant and convenient. See how in this episode.The named_scope method in Rails 2.1 makes performing finds on models very elegant and convenient. See how in this episode.#107 Migrations in Rails 2.1http://railscasts.com/episodes/107-migrations-in-rails-2-1
Migrations now have a timestamp as their version number in Rails 2.1. In this episode I will explain this change as well as show you some other cool additions.Fri, 16 May 2008 09:00:00 +0200migrations-in-rails-2-1noMigrations now have a timestamp as their version number in Rails 2.1. In this episode I will explain this change as well as show you some other cool additions.Migrations now have a timestamp as their version number in Rails 2.1. In this episode I will explain this change as well as show you some other cool additions.#106 Time Zones in Rails 2.1http://railscasts.com/episodes/106-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.Wed, 14 May 2008 09:00:00 +0200time-zones-in-rails-2-1noIn 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.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.#105 Gitting Rails 2.1 RC1http://railscasts.com/episodes/105-gitting-rails-2-1-rc1
Rails 2.1 Release Candidate 1 was just released! In this episode I will show you how to install it into your Rails project.Mon, 12 May 2008 09:00:00 +0200gitting-rails-2-1-rc1noRails 2.1 Release Candidate 1 was just released! In this episode I will show you how to install it into your Rails project.Rails 2.1 Release Candidate 1 was just released! In this episode I will show you how to install it into your Rails project.#104 Exception Notificationshttp://railscasts.com/episodes/104-exception-notifications
If you're running a production site, it's a good idea to record all exceptions which occur. See how to set up a notification system which does that in this episode.Mon, 05 May 2008 09:00:00 +0200exception-notificationsnoIf you're running a production site, it's a good idea to record all exceptions which occur. See how to set up a notification system which does that in this episode.If you're running a production site, it's a good idea to record all exceptions which occur. See how to set up a notification system which does that in this episode.#103 Site Wide Announcementshttp://railscasts.com/episodes/103-site-wide-announcements
Sometimes you need to display an administrative announcement to every page on the site and give the users the ability to hide the announcement. See how in this episode.Mon, 28 Apr 2008 09:00:00 +0200site-wide-announcementsnoSometimes you need to display an administrative announcement to every page on the site and give the users the ability to hide the announcement. See how in this episode.Sometimes you need to display an administrative announcement to every page on the site and give the users the ability to hide the announcement. See how in this episode.#102 Auto-Complete Associationhttp://railscasts.com/episodes/102-auto-complete-association
Usually a select menu is used for setting a belongs_to association, but in this episode I will show you how to use a text field with auto completion.Mon, 21 Apr 2008 09:00:00 +0200auto-complete-associationnoUsually a select menu is used for setting a belongs_to association, but in this episode I will show you how to use a text field with auto completion.Usually a select menu is used for setting a belongs_to association, but in this episode I will show you how to use a text field with auto completion.#101 Refactoring Out Helper Objecthttp://railscasts.com/episodes/101-refactoring-out-helper-object
If you have complex view logic, this can easily lead to helper methods which call each other. See how to refactor this out into another object in this episode. This is also known as the presenter pattern.Mon, 14 Apr 2008 09:00:00 +0200refactoring-out-helper-objectnoIf you have complex view logic, this can easily lead to helper methods which call each other. See how to refactor this out into another object in this episode. This is also known as the presenter pattern.If you have complex view logic, this can easily lead to helper methods which call each other. See how to refactor this out into another object in this episode. This is also known as the presenter pattern.#100 5 View Tipshttp://railscasts.com/episodes/100-5-view-tips
Here's five quick tips to use in views. Be sure to catch the end of the episode where I reveal an exciting contest!Mon, 07 Apr 2008 09:00:00 +02005-view-tipsnoHere's five quick tips to use in views. Be sure to catch the end of the episode where I reveal an exciting contest!Here's five quick tips to use in views. Be sure to catch the end of the episode where I reveal an exciting contest!#99 Complex Partialshttp://railscasts.com/episodes/99-complex-partials
How do you handle partials which have differences depending on the action which is rendering them? Here's three suggestions for this problem.Mon, 31 Mar 2008 09:00:00 +0200complex-partialsnoHow do you handle partials which have differences depending on the action which is rendering them? Here's three suggestions for this problem.How do you handle partials which have differences depending on the action which is rendering them? Here's three suggestions for this problem.#98 Request Profilinghttp://railscasts.com/episodes/98-request-profiling
You can use profiling to determine where the performance bottlenecks are in specific Rails actions. Watch this episode for details.Mon, 24 Mar 2008 08:00:00 +0100request-profilingnoYou can use profiling to determine where the performance bottlenecks are in specific Rails actions. Watch this episode for details.You can use profiling to determine where the performance bottlenecks are in specific Rails actions. Watch this episode for details.#97 Analyzing the Production Loghttp://railscasts.com/episodes/97-analyzing-the-production-log
In order to improve performance of your Rails application you need to find the bottlenecks. A great starting point is your production log. In this episode you will see how to use RAWK to analyze your log file and determine which controller actions take up the most processing time.Mon, 17 Mar 2008 08:00:00 +0100analyzing-the-production-lognoIn order to improve performance of your Rails application you need to find the bottlenecks. A great starting point is your production log. In this episode you will see how to use RAWK to analyze your log file and determine which controller actions take upIn order to improve performance of your Rails application you need to find the bottlenecks. A great starting point is your production log. In this episode you will see how to use RAWK to analyze your log file and determine which controller actions take up the most processing time.#96 Git on Railshttp://railscasts.com/episodes/96-git-on-rails
Git has been getting a lot of buzz lately, and for good reason. It's an excellent SCM which in many ways is more simple and powerful than subversion. See how to set up a Rails project with Git in this episode.Mon, 10 Mar 2008 08:00:00 +0100git-on-railsnoGit has been getting a lot of buzz lately, and for good reason. It's an excellent SCM which in many ways is more simple and powerful than subversion. See how to set up a Rails project with Git in this episode.Git has been getting a lot of buzz lately, and for good reason. It's an excellent SCM which in many ways is more simple and powerful than subversion. See how to set up a Rails project with Git in this episode.#95 More on ActiveResourcehttp://railscasts.com/episodes/95-more-on-activeresource
See how to handle authentication and custom actions using ActiveResource in this episode.Mon, 03 Mar 2008 08:00:00 +0100more-on-activeresourcenoSee how to handle authentication and custom actions using ActiveResource in this episode.See how to handle authentication and custom actions using ActiveResource in this episode.#94 ActiveResource Basicshttp://railscasts.com/episodes/94-activeresource-basics
ActiveResource allows you to easily communicate between multiple Rails applications. See how in this episode.Mon, 25 Feb 2008 08:00:00 +0100activeresource-basicsnoActiveResource allows you to easily communicate between multiple Rails applications. See how in this episode.ActiveResource allows you to easily communicate between multiple Rails applications. See how in this episode.#93 Action Cachinghttp://railscasts.com/episodes/93-action-caching
Action caching behaves much like page caching except it processes the controller filters. You can also make it conditional as seen in this episode.Mon, 18 Feb 2008 08:00:00 +0100action-cachingnoAction caching behaves much like page caching except it processes the controller filters. You can also make it conditional as seen in this episode.Action caching behaves much like page caching except it processes the controller filters. You can also make it conditional as seen in this episode.#92 make_resourcefulhttp://railscasts.com/episodes/92-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.Mon, 11 Feb 2008 08:00:00 +0100make-resourcefulnoThe 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.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.#91 Refactoring Long Methodshttp://railscasts.com/episodes/91-refactoring-long-methods
In this episode I walk you through an exercise in refactoring by taking a long method and making it more concise.Mon, 04 Feb 2008 08:00:00 +0100refactoring-long-methodsnoIn this episode I walk you through an exercise in refactoring by taking a long method and making it more concise.In this episode I walk you through an exercise in refactoring by taking a long method and making it more concise.#90 Fragment Cachinghttp://railscasts.com/episodes/90-fragment-caching
Sometimes you only want to cache a section of a page instead of the entire page. Fragment caching is the answer as shown in this episode.Sun, 27 Jan 2008 09:00:00 +0100fragment-cachingnoSometimes you only want to cache a section of a page instead of the entire page. Fragment caching is the answer as shown in this episode.Sometimes you only want to cache a section of a page instead of the entire page. Fragment caching is the answer as shown in this episode.#89 Page Cachinghttp://railscasts.com/episodes/89-page-caching
Page caching is an efficient way to cache stateless content. In this episode I will show you how to cache the dynamic javascript we created last week.Sun, 20 Jan 2008 09:00:00 +0100page-cachingnoPage caching is an efficient way to cache stateless content. In this episode I will show you how to cache the dynamic javascript we created last week.Page caching is an efficient way to cache stateless content. In this episode I will show you how to cache the dynamic javascript we created last week.#88 Dynamic Select Menushttp://railscasts.com/episodes/88-dynamic-select-menus
See how to dynamically change a select menu based on another select menu using Javascript. In this episode everything is kept client side which leads to a more responsive user interface.Sun, 13 Jan 2008 09:00:00 +0100dynamic-select-menusnoSee how to dynamically change a select menu based on another select menu using Javascript. In this episode everything is kept client side which leads to a more responsive user interface.See how to dynamically change a select menu based on another select menu using Javascript. In this episode everything is kept client side which leads to a more responsive user interface.#87 Generating RSS Feedshttp://railscasts.com/episodes/87-generating-rss-feeds
See how to easily generate and link to an RSS feed using new features in Rails 2.0. Watch this episode or details.Sun, 06 Jan 2008 09:00:00 +0100generating-rss-feedsnoSee how to easily generate and link to an RSS feed using new features in Rails 2.0. Watch this episode or details.See how to easily generate and link to an RSS feed using new features in Rails 2.0. Watch this episode or details.#86 Logging Variableshttp://railscasts.com/episodes/86-logging-variables
Have you ever wanted to easily log all variables? Now you can by using some advanced Ruby concepts as shown in this episode.Mon, 31 Dec 2007 08:00:00 +0100logging-variablesnoHave you ever wanted to easily log all variables? Now you can by using some advanced Ruby concepts as shown in this episode.Have you ever wanted to easily log all variables? Now you can by using some advanced Ruby concepts as shown in this episode.#85 YAML Configuration Filehttp://railscasts.com/episodes/85-yaml-configuration-file
Application configuration shouldn't be spread throughout your code base. Instead a much better place to put it is an external YAML file. See how to do that in this episode.Mon, 24 Dec 2007 08:00:00 +0100yaml-configuration-filenoApplication configuration shouldn't be spread throughout your code base. Instead a much better place to put it is an external YAML file. See how to do that in this episode.Application configuration shouldn't be spread throughout your code base. Instead a much better place to put it is an external YAML file. See how to do that in this episode.#84 Cookie Based Session Storehttp://railscasts.com/episodes/84-cookie-based-session-store
In Rails 1.2 the default session store is file based. This is inefficient and difficult to maintain. In Rails 2.0 the default is now cookie based which has several benefits as you will see in this episode.Sun, 16 Dec 2007 09:00:00 +0100cookie-based-session-storenoIn Rails 1.2 the default session store is file based. This is inefficient and difficult to maintain. In Rails 2.0 the default is now cookie based which has several benefits as you will see in this episode.In Rails 1.2 the default session store is file based. This is inefficient and difficult to maintain. In Rails 2.0 the default is now cookie based which has several benefits as you will see in this episode.#83 Migrations in Rails 2.0http://railscasts.com/episodes/83-migrations-in-rails-2-0
Migrations are now sexy in Rails 2.0! In this episode we will take a look at these improvements and the related rake tasks.Mon, 10 Dec 2007 08:00:00 +0100migrations-in-rails-2-0noMigrations are now sexy in Rails 2.0! In this episode we will take a look at these improvements and the related rake tasks.Migrations are now sexy in Rails 2.0! In this episode we will take a look at these improvements and the related rake tasks.#82 HTTP Basic Authenticationhttp://railscasts.com/episodes/82-http-basic-authentication
Rails 2.0 offers an extremely easy way to do HTTP basic authentication. See how in this episode.Sun, 02 Dec 2007 09:00:00 +0100http-basic-authenticationnoRails 2.0 offers an extremely easy way to do HTTP basic authentication. See how in this episode.Rails 2.0 offers an extremely easy way to do HTTP basic authentication. See how in this episode.#81 Fixtures in Rails 2.0http://railscasts.com/episodes/81-fixtures-in-rails-2-0
In Rails 2.0, fixtures see many improvements which makes them much easier to manage. Watch this episode for details.Mon, 26 Nov 2007 08:00:00 +0100fixtures-in-rails-2-0noIn Rails 2.0, fixtures see many improvements which makes them much easier to manage. Watch this episode for details.In Rails 2.0, fixtures see many improvements which makes them much easier to manage. Watch this episode for details.#80 Simplify Views with Rails 2.0http://railscasts.com/episodes/80-simplify-views-with-rails-2-0
Rails 2.0 is almost here. One of the many features in this release is the smarter helper methods which can make your views much cleaner. Learn all about it in this Episode.Mon, 19 Nov 2007 08:00:00 +0100simplify-views-with-rails-2-0noRails 2.0 is almost here. One of the many features in this release is the smarter helper methods which can make your views much cleaner. Learn all about it in this Episode.Rails 2.0 is almost here. One of the many features in this release is the smarter helper methods which can make your views much cleaner. Learn all about it in this Episode.#79 Generate Named Routeshttp://railscasts.com/episodes/79-generate-named-routes
This more advanced episode will show you how to dynamically generate named routes by adding a method to the map object.Mon, 12 Nov 2007 08:00:00 +0100generate-named-routesnoThis more advanced episode will show you how to dynamically generate named routes by adding a method to the map object.This more advanced episode will show you how to dynamically generate named routes by adding a method to the map object.#78 Generating PDF Documentshttp://railscasts.com/episodes/78-generating-pdf-documents
In this episode I will show you how to create PDF documents using the excellent PDF::Writer gem.Mon, 05 Nov 2007 08:00:00 +0100generating-pdf-documentsnoIn this episode I will show you how to create PDF documents using the excellent PDF::Writer gem.In this episode I will show you how to create PDF documents using the excellent PDF::Writer gem.#77 Destroy Without JavaScripthttp://railscasts.com/episodes/77-destroy-without-javascript
If the user has JavaScript disabled, the "Destroy" link might not work properly. In this episode I will explore a number of ways to work around this issue.Mon, 29 Oct 2007 08:00:00 +0100destroy-without-javascriptnoIf the user has JavaScript disabled, the "Destroy" link might not work properly. In this episode I will explore a number of ways to work around this issue.If the user has JavaScript disabled, the "Destroy" link might not work properly. In this episode I will explore a number of ways to work around this issue.#76 scope_outhttp://railscasts.com/episodes/76-scope-out
The scope_out plugin will generate several helpful find methods for you automatically! It's the best way to move the find conditions into your model. Watch this episode for details.Mon, 22 Oct 2007 09:00:00 +0200scope-outnoThe scope_out plugin will generate several helpful find methods for you automatically! It's the best way to move the find conditions into your model. Watch this episode for details.The scope_out plugin will generate several helpful find methods for you automatically! It's the best way to move the find conditions into your model. Watch this episode for details.#75 Complex Forms Part 3http://railscasts.com/episodes/75-complex-forms-part-3
In this third and final episode on complex forms I will show you how to edit a project and multiple tasks all in one form. This includes removing and adding tasks dynamically as well. See the show notes for updated code.Mon, 15 Oct 2007 09:00:00 +0200complex-forms-part-3noIn this third and final episode on complex forms I will show you how to edit a project and multiple tasks all in one form. This includes removing and adding tasks dynamically as well. See the show notes for updated code.In this third and final episode on complex forms I will show you how to edit a project and multiple tasks all in one form. This includes removing and adding tasks dynamically as well. See the show notes for updated code.#74 Complex Forms Part 2http://railscasts.com/episodes/74-complex-forms-part-2
See how to use Javascript and RJS to add and remove form fields dynamically. This episode will build upon the previous episode allowing you to create any number of tasks in one form the same time a project is created.Mon, 08 Oct 2007 09:00:00 +0200complex-forms-part-2noSee how to use Javascript and RJS to add and remove form fields dynamically. This episode will build upon the previous episode allowing you to create any number of tasks in one form the same time a project is created.See how to use Javascript and RJS to add and remove form fields dynamically. This episode will build upon the previous episode allowing you to create any number of tasks in one form the same time a project is created.#73 Complex Forms Part 1http://railscasts.com/episodes/73-complex-forms-part-1
Complex forms often lead to complex controllers, but that doesn't have to be the case. In this episode see how you can create multiple models through a single form while keeping the controller clean.Mon, 01 Oct 2007 09:00:00 +0200complex-forms-part-1noComplex forms often lead to complex controllers, but that doesn't have to be the case. In this episode see how you can create multiple models through a single form while keeping the controller clean.Complex forms often lead to complex controllers, but that doesn't have to be the case. In this episode see how you can create multiple models through a single form while keeping the controller clean.#72 Adding an Environmenthttp://railscasts.com/episodes/72-adding-an-environment
Rails comes with three environments: development, test, and production. But, you aren't restricted to just these. You can add your own! See how in this episode.Mon, 24 Sep 2007 09:00:00 +0200adding-an-environmentnoRails comes with three environments: development, test, and production. But, you aren't restricted to just these. You can add your own! See how in this episode.Rails comes with three environments: development, test, and production. But, you aren't restricted to just these. You can add your own! See how in this episode.#71 Testing Controllers with RSpechttp://railscasts.com/episodes/71-testing-controllers-with-rspec
Controllers are tricky to test, and there's no perfect way to do it. In this episode you will see how I test controllers, and my reasoning behind it.Mon, 17 Sep 2007 09:00:00 +0200testing-controllers-with-rspecnoControllers are tricky to test, and there's no perfect way to do it. In this episode you will see how I test controllers, and my reasoning behind it.Controllers are tricky to test, and there's no perfect way to do it. In this episode you will see how I test controllers, and my reasoning behind it.#70 Custom Routeshttp://railscasts.com/episodes/70-custom-routes
In this episode you will learn how to add custom routes, make some parameters optional, and add requirements for other parameters.Mon, 10 Sep 2007 09:00:00 +0200custom-routesnoIn this episode you will learn how to add custom routes, make some parameters optional, and add requirements for other parameters.In this episode you will learn how to add custom routes, make some parameters optional, and add requirements for other parameters.#69 Markaby in Helperhttp://railscasts.com/episodes/69-markaby-in-helper
Do you ever need to generate HTML code in a helper method? Placing it directly in Ruby strings is not very pretty. Learn a great way to generate HTML through Markaby in this episode.Mon, 03 Sep 2007 09:00:00 +0200markaby-in-helpernoDo you ever need to generate HTML code in a helper method? Placing it directly in Ruby strings is not very pretty. Learn a great way to generate HTML through Markaby in this episode.Do you ever need to generate HTML code in a helper method? Placing it directly in Ruby strings is not very pretty. Learn a great way to generate HTML through Markaby in this episode.#68 OpenID Authenticationhttp://railscasts.com/episodes/68-openid-authentication
Ever wonder how to implement OpenID authentication in your Rails app? This episode will show you how to add it to a site with an existing authentication system.Mon, 27 Aug 2007 09:00:00 +0200openid-authenticationnoEver wonder how to implement OpenID authentication in your Rails app? This episode will show you how to add it to a site with an existing authentication system.Ever wonder how to implement OpenID authentication in your Rails app? This episode will show you how to add it to a site with an existing authentication system.#67 restful_authenticationhttp://railscasts.com/episodes/67-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.Mon, 20 Aug 2007 09:00:00 +0200restful-authenticationnoNeed 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.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.#66 Custom Rake Taskshttp://railscasts.com/episodes/66-custom-rake-tasks
Rake is one of those tools that you don't realize how powerful it is until you start using it. In this episode you will learn how to create custom rake tasks and improve them by using rake features.Mon, 13 Aug 2007 09:00:00 +0200custom-rake-tasksnoRake is one of those tools that you don't realize how powerful it is until you start using it. In this episode you will learn how to create custom rake tasks and improve them by using rake features.Rake is one of those tools that you don't realize how powerful it is until you start using it. In this episode you will learn how to create custom rake tasks and improve them by using rake features.#65 Stopping Spam with Akismethttp://railscasts.com/episodes/65-stopping-spam-with-akismet
The Railscasts site has been getting a lot of comment spam in the past, but no longer. In this episode I will show you how I solved this problem by using the Akismet web service.Mon, 06 Aug 2007 09:00:00 +0200stopping-spam-with-akismetnoThe Railscasts site has been getting a lot of comment spam in the past, but no longer. In this episode I will show you how I solved this problem by using the Akismet web service.The Railscasts site has been getting a lot of comment spam in the past, but no longer. In this episode I will show you how I solved this problem by using the Akismet web service.#64 Custom Helper Moduleshttp://railscasts.com/episodes/64-custom-helper-modules
Rails designates one helper module per controller, but that shouldn't stop you from making custom helper modules to help structure the code. Learn how in this episode.Mon, 30 Jul 2007 09:00:00 +0200custom-helper-modulesnoRails designates one helper module per controller, but that shouldn't stop you from making custom helper modules to help structure the code. Learn how in this episode.Rails designates one helper module per controller, but that shouldn't stop you from making custom helper modules to help structure the code. Learn how in this episode.#63 Model Name in URLhttp://railscasts.com/episodes/63-model-name-in-url
By default, Rails uses the model's id in the URL. What if you want to use the name of the model instead? You can change this behavior by overriding the to_param method in the model. Watch this episode for details.Fri, 27 Jul 2007 09:00:00 +0200model-name-in-urlnoBy default, Rails uses the model's id in the URL. What if you want to use the name of the model instead? You can change this behavior by overriding the to_param method in the model. Watch this episode for details.By default, Rails uses the model's id in the URL. What if you want to use the name of the model instead? You can change this behavior by overriding the to_param method in the model. Watch this episode for details.#62 Hacking ActiveRecordhttp://railscasts.com/episodes/62-hacking-activerecord
Have you ever wanted to temporarily disable all validations? Well, ActiveRecord doesn't support this, but that doesn't mean we can't add it. This episode will show you how to open up an existing class and change its behavior.Wed, 25 Jul 2007 09:00:00 +0200hacking-activerecordnoHave you ever wanted to temporarily disable all validations? Well, ActiveRecord doesn't support this, but that doesn't mean we can't add it. This episode will show you how to open up an existing class and change its behavior.Have you ever wanted to temporarily disable all validations? Well, ActiveRecord doesn't support this, but that doesn't mean we can't add it. This episode will show you how to open up an existing class and change its behavior.#61 Sending Emailhttp://railscasts.com/episodes/61-sending-email
This is a brief guide to sending email in Rails. See how to configure the environment, generate a mailer, create a template, and deliver the mail.Mon, 23 Jul 2007 09:00:00 +0200sending-emailnoThis is a brief guide to sending email in Rails. See how to configure the environment, generate a mailer, create a template, and deliver the mail.This is a brief guide to sending email in Rails. See how to configure the environment, generate a mailer, create a template, and deliver the mail.#60 Testing without Fixtureshttp://railscasts.com/episodes/60-testing-without-fixtures
Tests which rely heavily on fixtures are brittle and can be difficult to maintain. This episode will show a couple techniques for creating tests which don't use fixtures.Fri, 20 Jul 2007 09:00:00 +0200testing-without-fixturesnoTests which rely heavily on fixtures are brittle and can be difficult to maintain. This episode will show a couple techniques for creating tests which don't use fixtures.Tests which rely heavily on fixtures are brittle and can be difficult to maintain. This episode will show a couple techniques for creating tests which don't use fixtures.#59 Optimistic Lockinghttp://railscasts.com/episodes/59-optimistic-locking
When two people attempt to update the same record near the same time, one of the updates will likely be overwritten. You can solve this problem with optimistic locking.Wed, 18 Jul 2007 09:00:00 +0200optimistic-lockingnoWhen two people attempt to update the same record near the same time, one of the updates will likely be overwritten. You can solve this problem with optimistic locking.When two people attempt to update the same record near the same time, one of the updates will likely be overwritten. You can solve this problem with optimistic locking.#58 How to Make a Generatorhttp://railscasts.com/episodes/58-how-to-make-a-generator
Rails comes with many built-in generators, but what if you want to customize them or make your own? Rails gives you a great way to do this which you will learn in this episode.Mon, 16 Jul 2007 09:00:00 +0200how-to-make-a-generatornoRails comes with many built-in generators, but what if you want to customize them or make your own? Rails gives you a great way to do this which you will learn in this episode.Rails comes with many built-in generators, but what if you want to customize them or make your own? Rails gives you a great way to do this which you will learn in this episode.#57 Create Model Through Text Fieldhttp://railscasts.com/episodes/57-create-model-through-text-field
Let's say you provide a select menu for setting which category a given product belongs to, but you also want the option of creating a new category by typing the name in a text field. See a great way to do that in this episode.Fri, 13 Jul 2007 09:00:00 +0200create-model-through-text-fieldnoLet's say you provide a select menu for setting which category a given product belongs to, but you also want the option of creating a new category by typing the name in a text field. See a great way to do that in this episode.Let's say you provide a select menu for setting which category a given product belongs to, but you also want the option of creating a new category by typing the name in a text field. See a great way to do that in this episode.#56 The Loggerhttp://railscasts.com/episodes/56-the-logger
Learn all about the logger in this episode. See how to send messages to the log and how to customize it.Wed, 11 Jul 2007 09:00:00 +0200the-loggernoLearn all about the logger in this episode. See how to send messages to the log and how to customize it.Learn all about the logger in this episode. See how to send messages to the log and how to customize it.#55 Cleaning Up the Viewhttp://railscasts.com/episodes/55-cleaning-up-the-view
This episode starts off with a big, messy template. Watch as this code shrinks and becomes more readable while the interface stays the same.Mon, 09 Jul 2007 09:00:00 +0200cleaning-up-the-viewnoThis episode starts off with a big, messy template. Watch as this code shrinks and becomes more readable while the interface stays the same.This episode starts off with a big, messy template. Watch as this code shrinks and becomes more readable while the interface stays the same.#54 Debugging with ruby-debughttp://railscasts.com/episodes/54-debugging-with-ruby-debug
This episode will show you how to debug a rails app using ruby-debug: set a breakpoint, inspect variables, change the code and more.Fri, 06 Jul 2007 09:00:00 +0200debugging-with-ruby-debugnoThis episode will show you how to debug a rails app using ruby-debug: set a breakpoint, inspect variables, change the code and more.This episode will show you how to debug a rails app using ruby-debug: set a breakpoint, inspect variables, change the code and more.#53 Handling Exceptionshttp://railscasts.com/episodes/53-handling-exceptions
When an exception is raised in development you get the full error along with the stack trace. In production, only a simple message is displayed. Learn why this is and how to customize the handling of exceptions.Wed, 04 Jul 2007 09:00:00 +0200handling-exceptionsnoWhen an exception is raised in development you get the full error along with the stack trace. In production, only a simple message is displayed. Learn why this is and how to customize the handling of exceptions.When an exception is raised in development you get the full error along with the stack trace. In production, only a simple message is displayed. Learn why this is and how to customize the handling of exceptions.#52 Update through Checkboxeshttp://railscasts.com/episodes/52-update-through-checkboxes
See how to select multiple items using checkboxes and perform an action on the selected items in this episode.Mon, 02 Jul 2007 09:00:00 +0200update-through-checkboxesnoSee how to select multiple items using checkboxes and perform an action on the selected items in this episode.See how to select multiple items using checkboxes and perform an action on the selected items in this episode.#51 will_paginatehttp://railscasts.com/episodes/51-will-paginate
In edge rails (soon to be Rails 2.0), the built-in pagination has been moved into a plugin: classic_pagination. I recommend jumping over to the will_paginate plugin as shown in this episode.Fri, 29 Jun 2007 09:00:00 +0200will-paginatenoIn edge rails (soon to be Rails 2.0), the built-in pagination has been moved into a plugin: classic_pagination. I recommend jumping over to the will_paginate plugin as shown in this episode.In edge rails (soon to be Rails 2.0), the built-in pagination has been moved into a plugin: classic_pagination. I recommend jumping over to the will_paginate plugin as shown in this episode.#50 Contributing to Railshttp://railscasts.com/episodes/50-contributing-to-rails
The best way to contribute to the Rails project is to submit a patch. This episode shows how to do exactly that. There's also a surprise at the end that you don't want to miss!Wed, 27 Jun 2007 09:00:00 +0200contributing-to-railsnoThe best way to contribute to the Rails project is to submit a patch. This episode shows how to do exactly that. There's also a surprise at the end that you don't want to miss!The best way to contribute to the Rails project is to submit a patch. This episode shows how to do exactly that. There's also a surprise at the end that you don't want to miss!#49 Reading the APIhttp://railscasts.com/episodes/49-reading-the-api
The Rails API docs are very useful but can be difficult to read. This episode will give some tips on reading the docs and mention a few alternative sites for accessing the API. Update: sorry about the broken movie, it should work now.Mon, 25 Jun 2007 09:00:00 +0200reading-the-apinoThe Rails API docs are very useful but can be difficult to read. This episode will give some tips on reading the docs and mention a few alternative sites for accessing the API. Update: sorry about the broken movie, it should work now.The Rails API docs are very useful but can be difficult to read. This episode will give some tips on reading the docs and mention a few alternative sites for accessing the API. Update: sorry about the broken movie, it should work now.#48 Console Trickshttp://railscasts.com/episodes/48-console-tricks
The Rails console is one of my favorite tools. This episode is packed with tips and tricks on how to get the most out of the console.Fri, 22 Jun 2007 09:00:00 +0200console-tricksnoThe Rails console is one of my favorite tools. This episode is packed with tips and tricks on how to get the most out of the console.The Rails console is one of my favorite tools. This episode is packed with tips and tricks on how to get the most out of the console.#47 Two Many-to-Manyhttp://railscasts.com/episodes/47-two-many-to-many
There are two different ways to set up a many-to-many association in Rails. In this episode you will see how to implement both ways along with some tips on choosing the right one for your project.Wed, 20 Jun 2007 09:00:00 +0200two-many-to-manynoThere are two different ways to set up a many-to-many association in Rails. In this episode you will see how to implement both ways along with some tips on choosing the right one for your project.There are two different ways to set up a many-to-many association in Rails. In this episode you will see how to implement both ways along with some tips on choosing the right one for your project.#46 Catch-all Routehttp://railscasts.com/episodes/46-catch-all-route
Sometimes you need to add complex/dynamic routes. This is often impossible to do in routes.rb, but do not worry. It can be accomplished with a catch-all route. See how in this episode.Mon, 18 Jun 2007 09:00:00 +0200catch-all-routenoSometimes you need to add complex/dynamic routes. This is often impossible to do in routes.rb, but do not worry. It can be accomplished with a catch-all route. See how in this episode.Sometimes you need to add complex/dynamic routes. This is often impossible to do in routes.rb, but do not worry. It can be accomplished with a catch-all route. See how in this episode.#45 RJS Tipshttp://railscasts.com/episodes/45-rjs-tips
This episode is packed with little RJS goodies. Learn the different ways to access an element, how to add "if" conditions and how to apply an effect to multiple elements.Fri, 15 Jun 2007 09:00:00 +0200rjs-tipsnoThis episode is packed with little RJS goodies. Learn the different ways to access an element, how to add "if" conditions and how to apply an effect to multiple elements.This episode is packed with little RJS goodies. Learn the different ways to access an element, how to add "if" conditions and how to apply an effect to multiple elements.#44 Debugging RJShttp://railscasts.com/episodes/44-debugging-rjs
RJS and AJAX can be difficult to debug. Many times you don't get any error message in the browser. Learn different techniques for solving these tricky problems in this episode.Wed, 13 Jun 2007 09:00:00 +0200debugging-rjsnoRJS and AJAX can be difficult to debug. Many times you don't get any error message in the browser. Learn different techniques for solving these tricky problems in this episode.RJS and AJAX can be difficult to debug. Many times you don't get any error message in the browser. Learn different techniques for solving these tricky problems in this episode.#43 AJAX with RJShttp://railscasts.com/episodes/43-ajax-with-rjs
This episode will walk you through adding AJAX functionality to a form using RJS. See how to easily update multiple elements on a page.Mon, 11 Jun 2007 09:00:00 +0200ajax-with-rjsnoThis episode will walk you through adding AJAX functionality to a form using RJS. See how to easily update multiple elements on a page.This episode will walk you through adding AJAX functionality to a form using RJS. See how to easily update multiple elements on a page.#42 with_optionshttp://railscasts.com/episodes/42-with-options
Several methods in rails take a hash of options as the last argument. If you are passing the same options to several methods, you can remove this duplication by using with_options. Learn all about it in this episode.Fri, 08 Jun 2007 09:00:00 +0200with-optionsnoSeveral methods in rails take a hash of options as the last argument. If you are passing the same options to several methods, you can remove this duplication by using with_options. Learn all about it in this episode.Several methods in rails take a hash of options as the last argument. If you are passing the same options to several methods, you can remove this duplication by using with_options. Learn all about it in this episode.#41 Conditional Validationshttp://railscasts.com/episodes/41-conditional-validations
By default, validations will take place every time the model is saved. Sometimes you only want a validation to happen when certain conditions are met. See how to do that in this episode.Wed, 06 Jun 2007 09:00:00 +0200conditional-validationsnoBy default, validations will take place every time the model is saved. Sometimes you only want a validation to happen when certain conditions are met. See how to do that in this episode.By default, validations will take place every time the model is saved. Sometimes you only want a validation to happen when certain conditions are met. See how to do that in this episode.#40 Blocks in Viewhttp://railscasts.com/episodes/40-blocks-in-view
If you try to create a helper method which accepts a block, you will run into a few gotchas. Learn the secrets of blocks in views in this episode.Mon, 04 Jun 2007 09:00:00 +0200blocks-in-viewnoIf you try to create a helper method which accepts a block, you will run into a few gotchas. Learn the secrets of blocks in views in this episode.If you try to create a helper method which accepts a block, you will run into a few gotchas. Learn the secrets of blocks in views in this episode.#39 Customize Field Errorhttp://railscasts.com/episodes/39-customize-field-error
When a validation error occurs, Rails helpfully wraps the field in a div tag so you can style it. But sometimes you don't want this behavior. In this episode you will see how to customize it.Fri, 01 Jun 2007 09:00:00 +0200customize-field-errornoWhen a validation error occurs, Rails helpfully wraps the field in a div tag so you can style it. But sometimes you don't want this behavior. In this episode you will see how to customize it.When a validation error occurs, Rails helpfully wraps the field in a div tag so you can style it. But sometimes you don't want this behavior. In this episode you will see how to customize it.#38 Multibutton Formhttp://railscasts.com/episodes/38-multibutton-form
If you have a form with multiple buttons, you can detect which button was clicked by checking the passed parameters. Learn how in this episode.Wed, 30 May 2007 09:00:00 +0200multibutton-formnoIf you have a form with multiple buttons, you can detect which button was clicked by checking the passed parameters. Learn how in this episode.If you have a form with multiple buttons, you can detect which button was clicked by checking the passed parameters. Learn how in this episode.#37 Simple Search Formhttp://railscasts.com/episodes/37-simple-search-form
A search form is quite different than other forms, this is because it does not deal with model's attributes. See a good way to add a simple search form in this episode.Mon, 28 May 2007 09:00:00 +0200simple-search-formnoA search form is quite different than other forms, this is because it does not deal with model's attributes. See a good way to add a simple search form in this episode.A search form is quite different than other forms, this is because it does not deal with model's attributes. See a good way to add a simple search form in this episode.#36 Subversion on Railshttp://railscasts.com/episodes/36-subversion-on-rails
This episode will walk you through setting up a Rails project on subversion. It covers some helpful tips and gotchas you may experience along the way.Fri, 25 May 2007 09:00:00 +0200subversion-on-railsnoThis episode will walk you through setting up a Rails project on subversion. It covers some helpful tips and gotchas you may experience along the way.This episode will walk you through setting up a Rails project on subversion. It covers some helpful tips and gotchas you may experience along the way.#35 Custom REST Actionshttp://railscasts.com/episodes/35-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.Wed, 23 May 2007 09:00:00 +0200custom-rest-actionsnoREST 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.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.#34 Named Routeshttp://railscasts.com/episodes/34-named-routes
When you add a custom route, make it a named route so you have url helper methods to easily link to that new route. See episode for details.Mon, 21 May 2007 09:00:00 +0200named-routesnoWhen you add a custom route, make it a named route so you have url helper methods to easily link to that new route. See episode for details.When you add a custom route, make it a named route so you have url helper methods to easily link to that new route. See episode for details.#33 Making a Pluginhttp://railscasts.com/episodes/33-making-a-plugin
You can sometimes remove a lot of duplication by generating methods dynamic. In this episode I will show you how to create a plugin which does exactly that.Fri, 18 May 2007 09:00:00 +0200making-a-pluginnoYou can sometimes remove a lot of duplication by generating methods dynamic. In this episode I will show you how to create a plugin which does exactly that.You can sometimes remove a lot of duplication by generating methods dynamic. In this episode I will show you how to create a plugin which does exactly that.#32 Time in Text Fieldhttp://railscasts.com/episodes/32-time-in-text-field
Although Rails does allow you to edit time attributes with text fields, it's not very flexible. In this episode you will learn how to use a virtual attribute to format the time to your liking.Wed, 16 May 2007 09:00:00 +0200time-in-text-fieldnoAlthough Rails does allow you to edit time attributes with text fields, it's not very flexible. In this episode you will learn how to use a virtual attribute to format the time to your liking.Although Rails does allow you to edit time attributes with text fields, it's not very flexible. In this episode you will learn how to use a virtual attribute to format the time to your liking.#31 Formatting Timehttp://railscasts.com/episodes/31-formatting-time
Learn how to use the trusty strftime method to format a time, and see how Rails allows you to save this format for later use.Mon, 14 May 2007 09:00:00 +0200formatting-timenoLearn how to use the trusty strftime method to format a time, and see how Rails allows you to save this format for later use.Learn how to use the trusty strftime method to format a time, and see how Rails allows you to save this format for later use.#30 Pretty Page Titlehttp://railscasts.com/episodes/30-pretty-page-title
If you are like me, you avoid creating page titles because it is kind of a pain. But in this episode I will show you a clean way to add titles to your pages.Fri, 11 May 2007 09:00:00 +0200pretty-page-titlenoIf you are like me, you avoid creating page titles because it is kind of a pain. But in this episode I will show you a clean way to add titles to your pages.If you are like me, you avoid creating page titles because it is kind of a pain. But in this episode I will show you a clean way to add titles to your pages.#29 group_by Monthhttp://railscasts.com/episodes/29-group-by-month
Learn how to use the very useful group_by method to group an array by anything you want! In this episode I group an array of tasks by month then sort it properly.Wed, 09 May 2007 09:00:00 +0200group-by-monthnoLearn how to use the very useful group_by method to group an array by anything you want! In this episode I group an array of tasks by month then sort it properly.Learn how to use the very useful group_by method to group an array by anything you want! In this episode I group an array of tasks by month then sort it properly.#28 in_groups_ofhttp://railscasts.com/episodes/28-in-groups-of
Have you ever wanted to visually line up items in rows and columns? The in_groups_of method makes this a cinch. Just watch out for the gotcha.Mon, 07 May 2007 09:00:00 +0200in-groups-ofnoHave you ever wanted to visually line up items in rows and columns? The in_groups_of method makes this a cinch. Just watch out for the gotcha.Have you ever wanted to visually line up items in rows and columns? The in_groups_of method makes this a cinch. Just watch out for the gotcha.#27 Cross Site Scriptinghttp://railscasts.com/episodes/27-cross-site-scripting
Another common security issue is cross site scripting. In this episode you will see why it is so important to escape any HTML a user may submit.Fri, 04 May 2007 09:00:00 +0200cross-site-scriptingnoAnother common security issue is cross site scripting. In this episode you will see why it is so important to escape any HTML a user may submit.Another common security issue is cross site scripting. In this episode you will see why it is so important to escape any HTML a user may submit.#26 Hackers Love Mass Assignmenthttp://railscasts.com/episodes/26-hackers-love-mass-assignment
Your site may be at risk! When using mass assignment, you are giving the user complete control over that model and its associations. See how a hacker might use this vulnerability and learn how to stop it in this episode.Wed, 02 May 2007 09:00:00 +0200hackers-love-mass-assignmentnoYour site may be at risk! When using mass assignment, you are giving the user complete control over that model and its associations. See how a hacker might use this vulnerability and learn how to stop it in this episode.Your site may be at risk! When using mass assignment, you are giving the user complete control over that model and its associations. See how a hacker might use this vulnerability and learn how to stop it in this episode.#25 SQL Injectionhttp://railscasts.com/episodes/25-sql-injection
One of the most common security problems for dynamic sites is SQL Injection. Thankfully Rails does everything it can in solving this issue, but you still need to be aware of it.Mon, 30 Apr 2007 09:00:00 +0200sql-injectionnoOne of the most common security problems for dynamic sites is SQL Injection. Thankfully Rails does everything it can in solving this issue, but you still need to be aware of it.One of the most common security problems for dynamic sites is SQL Injection. Thankfully Rails does everything it can in solving this issue, but you still need to be aware of it.#24 The Stack Tracehttp://railscasts.com/episodes/24-the-stack-trace
The stack trace can be a very useful tool when it comes to debugging. Learn the ins and outs of how the stack trace works in this episode. Note: I am using an older version of the Rails bundle here so it might be a little different than yours. The command in the newer version is called Install Plugin and requires you to type textmate_footnotes in the search.Fri, 27 Apr 2007 09:00:00 +0200the-stack-tracenoThe stack trace can be a very useful tool when it comes to debugging. Learn the ins and outs of how the stack trace works in this episode. Note: I am using an older version of the Rails bundle here so it might be a little different than yours. The commandThe stack trace can be a very useful tool when it comes to debugging. Learn the ins and outs of how the stack trace works in this episode. Note: I am using an older version of the Rails bundle here so it might be a little different than yours. The command in the newer version is called Install Plugin and requires you to type textmate_footnotes in the search.#23 Counter Cache Columnhttp://railscasts.com/episodes/23-counter-cache-column
If you need to display the record count for a has_many association, you can improve performance by caching that number in a column.Wed, 25 Apr 2007 09:00:00 +0200counter-cache-columnnoIf you need to display the record count for a has_many association, you can improve performance by caching that number in a column.If you need to display the record count for a has_many association, you can improve performance by caching that number in a column.#22 Eager Loadinghttp://railscasts.com/episodes/22-eager-loading
One way to improve performance is to cut down on the number of SQL queries. You can do this through eager loading. Learn all about it in this episode!Mon, 23 Apr 2007 09:00:00 +0200eager-loadingnoOne way to improve performance is to cut down on the number of SQL queries. You can do this through eager loading. Learn all about it in this episode!One way to improve performance is to cut down on the number of SQL queries. You can do this through eager loading. Learn all about it in this episode!#21 Super Simple Authenticationhttp://railscasts.com/episodes/21-super-simple-authentication
The final piece of the administration puzzle: authentication. There are many different approaches which is why I saved this step for last. This episode will cover a few techniques including the simple solution used for this site.Fri, 20 Apr 2007 09:00:00 +0200super-simple-authenticationnoThe final piece of the administration puzzle: authentication. There are many different approaches which is why I saved this step for last. This episode will cover a few techniques including the simple solution used for this site.The final piece of the administration puzzle: authentication. There are many different approaches which is why I saved this step for last. This episode will cover a few techniques including the simple solution used for this site.#20 Restricting Accesshttp://railscasts.com/episodes/20-restricting-access
In this second part of the series on administration, you will learn how to lock down the site to keep the public from accessing the administration features.Wed, 18 Apr 2007 09:00:00 +0200restricting-accessnoIn this second part of the series on administration, you will learn how to lock down the site to keep the public from accessing the administration features.In this second part of the series on administration, you will learn how to lock down the site to keep the public from accessing the administration features.#19 Where Administration Goeshttp://railscasts.com/episodes/19-where-administration-goes
This is the first part of a three part series on building an administration system. Many developers choose to separate it completely from the public side of the site by placing it into an admin subdirectory. This episode will show you an alternative and often better solution.Mon, 16 Apr 2007 09:00:00 +0200where-administration-goesnoThis is the first part of a three part series on building an administration system. Many developers choose to separate it completely from the public side of the site by placing it into an admin subdirectory. This episode will show you an alternative and oThis is the first part of a three part series on building an administration system. Many developers choose to separate it completely from the public side of the site by placing it into an admin subdirectory. This episode will show you an alternative and often better solution.#18 Looping Through Flashhttp://railscasts.com/episodes/18-looping-through-flash
Displaying flash messages in the layout can be a pain at times. In this episode you will learn an easy way to display any kind of flash message by looping through the hash.Fri, 13 Apr 2007 09:00:00 +0200looping-through-flashnoDisplaying flash messages in the layout can be a pain at times. In this episode you will learn an easy way to display any kind of flash message by looping through the hash.Displaying flash messages in the layout can be a pain at times. In this episode you will learn an easy way to display any kind of flash message by looping through the hash.#17 HABTM Checkboxeshttp://railscasts.com/episodes/17-habtm-checkboxes
It is often asked: how do I create a list of checkboxes for managing a HABTM association? Ask no more because this episode will show you how to do exactly that.Wed, 11 Apr 2007 09:00:00 +0200habtm-checkboxesnoIt is often asked: how do I create a list of checkboxes for managing a HABTM association? Ask no more because this episode will show you how to do exactly that.It is often asked: how do I create a list of checkboxes for managing a HABTM association? Ask no more because this episode will show you how to do exactly that.#16 Virtual Attributeshttp://railscasts.com/episodes/16-virtual-attributes
Keep your controllers clean and forms flexible by adding virtual attributes to your model. This very powerful technique allows you to create form fields which may not directly relate to the database.Mon, 09 Apr 2007 09:00:00 +0200virtual-attributesnoKeep your controllers clean and forms flexible by adding virtual attributes to your model. This very powerful technique allows you to create form fields which may not directly relate to the database.Keep your controllers clean and forms flexible by adding virtual attributes to your model. This very powerful technique allows you to create form fields which may not directly relate to the database.#15 Fun with Find Conditionshttp://railscasts.com/episodes/15-fun-with-find-conditions
You can pass more than simple strings to find conditions. Arrays, ranges, and nil values can be passed as well. In this episode you will see the tricks involved with passing these odd objects to find conditions. (Update: audio fixed).Fri, 06 Apr 2007 09:00:00 +0200fun-with-find-conditionsnoYou can pass more than simple strings to find conditions. Arrays, ranges, and nil values can be passed as well. In this episode you will see the tricks involved with passing these odd objects to find conditions. (Update: audio fixed).You can pass more than simple strings to find conditions. Arrays, ranges, and nil values can be passed as well. In this episode you will see the tricks involved with passing these odd objects to find conditions. (Update: audio fixed).#14 Performing Calculations on Modelshttp://railscasts.com/episodes/14-performing-calculations-on-models
Did you know ActiveRecord provides class methods for performing calculations on models? You can even use these methods through associations.Wed, 04 Apr 2007 09:00:00 +0200performing-calculations-on-modelsnoDid you know ActiveRecord provides class methods for performing calculations on models? You can even use these methods through associations.Did you know ActiveRecord provides class methods for performing calculations on models? You can even use these methods through associations.#13 Dangers of Model in Sessionhttp://railscasts.com/episodes/13-dangers-of-model-in-session
Be careful when storing a model in a session. It will behave differently than you expect and can easily get out of sync with the database. Instead of storing the model directly in the session, store the id to the model and use that to fetch it from the database.Mon, 02 Apr 2007 09:00:00 +0200dangers-of-model-in-sessionnoBe careful when storing a model in a session. It will behave differently than you expect and can easily get out of sync with the database. Instead of storing the model directly in the session, store the id to the model and use that to fetch it from the daBe careful when storing a model in a session. It will behave differently than you expect and can easily get out of sync with the database. Instead of storing the model directly in the session, store the id to the model and use that to fetch it from the database.#12 Refactoring User Name Part 3http://railscasts.com/episodes/12-refactoring-user-name-part-3
In the final part of this series you will see how to refactor your tests. Keeping tests clean is important because it will make testing easier to do in the future.Fri, 30 Mar 2007 09:00:00 +0200refactoring-user-name-part-3noIn the final part of this series you will see how to refactor your tests. Keeping tests clean is important because it will make testing easier to do in the future.In the final part of this series you will see how to refactor your tests. Keeping tests clean is important because it will make testing easier to do in the future.#11 Refactoring User Name Part 2http://railscasts.com/episodes/11-refactoring-user-name-part-2
Testing and refactoring go hand in hand. Refactoring is all about improving code without changing its behavior. Testing is all about making sure you don't change the behavior while you are improving the code.Wed, 28 Mar 2007 09:00:00 +0200refactoring-user-name-part-2noTesting and refactoring go hand in hand. Refactoring is all about improving code without changing its behavior. Testing is all about making sure you don't change the behavior while you are improving the code.Testing and refactoring go hand in hand. Refactoring is all about improving code without changing its behavior. Testing is all about making sure you don't change the behavior while you are improving the code.#10 Refactoring User Name Part 1http://railscasts.com/episodes/10-refactoring-user-name-part-1
Learn how to clean up your code through refactoring. This episode will show you how to move code from the view into the model to remove duplication and simplify the view.Mon, 26 Mar 2007 09:00:00 +0200refactoring-user-name-part-1noLearn how to clean up your code through refactoring. This episode will show you how to move code from the view into the model to remove duplication and simplify the view.Learn how to clean up your code through refactoring. This episode will show you how to move code from the view into the model to remove duplication and simplify the view.#9 Filtering Sensitive Logshttp://railscasts.com/episodes/9-filtering-sensitive-logs
Are you accepting sensitive user data? Passwords, credit card numbers, etc. By default, Rails stores all submitted parameters in plain text in the logs. This episode will show you how to filter this sensitive input so it doesn't show up in the log file.Fri, 23 Mar 2007 08:00:00 +0100filtering-sensitive-logsnoAre you accepting sensitive user data? Passwords, credit card numbers, etc. By default, Rails stores all submitted parameters in plain text in the logs. This episode will show you how to filter this sensitive input so it doesn't show up in the log file.Are you accepting sensitive user data? Passwords, credit card numbers, etc. By default, Rails stores all submitted parameters in plain text in the logs. This episode will show you how to filter this sensitive input so it doesn't show up in the log file.#8 Layouts and content_forhttp://railscasts.com/episodes/8-layouts-and-content-for
If you want to change something in the layout on a per-template basis, content_for is your answer! This allows templates to specify view code that can be placed anywhere in a layout.Wed, 21 Mar 2007 08:00:00 +0100layouts-and-content-fornoIf you want to change something in the layout on a per-template basis, content_for is your answer! This allows templates to specify view code that can be placed anywhere in a layout.If you want to change something in the layout on a per-template basis, content_for is your answer! This allows templates to specify view code that can be placed anywhere in a layout.#7 All About Layoutshttp://railscasts.com/episodes/7-all-about-layouts
Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout.Mon, 19 Mar 2007 08:00:00 +0100all-about-layoutsnoEverything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout.Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout.#6 Shortcut Blocks with Symbol to_prochttp://railscasts.com/episodes/6-shortcut-blocks-with-symbol-to-proc
It may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily.Fri, 16 Mar 2007 08:00:00 +0100shortcut-blocks-with-symbol-to-procnoIt may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily.It may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily.#5 Using with_scopehttp://railscasts.com/episodes/5-using-with-scope
Learn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic!Wed, 14 Mar 2007 08:00:00 +0100using-with-scopenoLearn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic!Learn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic!#4 Move Find into Modelhttp://railscasts.com/episodes/4-move-find-into-model
Move a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association.Mon, 12 Mar 2007 08:00:00 +0100move-find-into-modelnoMove a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association.Move a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association.#3 Find Through Associationhttp://railscasts.com/episodes/3-find-through-association
No need to pass foreign keys in find conditions, just do the find through a has_many association.Fri, 09 Mar 2007 08:00:00 +0100find-through-associationnoNo need to pass foreign keys in find conditions, just do the find through a has_many association.No need to pass foreign keys in find conditions, just do the find through a has_many association.#2 Dynamic find_by Methodshttp://railscasts.com/episodes/2-dynamic-find-by-methods
Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods.Wed, 07 Mar 2007 08:00:00 +0100dynamic-find-by-methodsnoShorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods.Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods.#1 Caching with Instance Variableshttp://railscasts.com/episodes/1-caching-with-instance-variables
Learn a quick way to improve performance. Just store the end result of an expensive command in an instance variable!Sun, 04 Mar 2007 09:00:00 +0100caching-with-instance-variablesnoLearn a quick way to improve performance. Just store the end result of an expensive command in an instance variable!Learn a quick way to improve performance. Just store the end result of an expensive command in an instance variable!nonadult