RailsCasts (Mobile)
346 episodes - English - Latest episode: about 11 years ago - ★★★★★ - 58 ratingsEvery 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 version is for mobile devices which cannot support the full resolution version.
Homepage Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
Episodes
#196 Nested Model Form Part 1
January 11, 2010 08:00 - 11 minutes - 11.1 MB VideoHandling 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 2009
January 04, 2010 08:00 - 6 minutes - 7.96 MB VideoHere I show several of my favorite web applications which I found most helpful as a Ruby developer over the past year.
#194 MongoDB and MongoMapper
December 28, 2009 08:00 - 13 minutes - 13.4 MB VideoMongoDB is a document based database engine. Learn how to access it through MongoMapper in this episode.
#193 Tableless Model
December 21, 2009 08:00 - 8 minutes - 9.38 MB VideoIf 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 CanCan
December 14, 2009 08:00 - 15 minutes - 17.3 MB VideoCanCan is a simple authorization plugin that offers a lot of flexibility. See how to use it in this episode.
#191 Mechanize
December 07, 2009 08:00 - 10 minutes - 12 MB VideoMechanize extends the power of Nokogiri allowing you to interact with multiple pages on the site: click links, submit forms, etc.
#190 Screen Scraping with Nokogiri
November 30, 2009 08:00 - 13 minutes - 16.7 MB VideoScreen scraping is easy with Nokogiri and SelectorGadget.
#189 Embedded Association
November 23, 2009 08:00 - 14 minutes - 13.5 MB VideoLearn 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 Authorization
November 16, 2009 08:00 - 15 minutes - 17.3 MB VideoDeclarative authorization provides an advanced and powerful solution for role based authorization.
#187 Testing Exceptions
November 09, 2009 08:00 - 10 minutes - 10.1 MB VideoSometimes 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 Cucumber
November 02, 2009 08:00 - 16 minutes - 17.6 MB VideoPickle adds many convenient Cucumber steps for generating models. Also learn about table diffs in this episode.
#185 Formtastic Part 2
October 26, 2009 07:00 - 9 minutes - 10 MB VideoLearn about some of the more advanced functionality of Formtastic including handling many-to-many associations, required fields, and styling.
#184 Formtastic Part 1
October 19, 2009 07:00 - 10 minutes - 10.3 MB VideoFormtastic 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 & Jeweler
October 12, 2009 07:00 - 7 minutes - 8.87 MB VideoGemcutter is a new service for hosting RubyGems, and Jeweler provides an automated way to release versions of a gem.
#182 Cropping Images
October 05, 2009 07:00 - 14 minutes - 16.3 MB VideoPresent a slick user interface for cropping image attachments using Jcrop and Paperclip.
#181 Include vs Joins
September 28, 2009 07:00 - 11 minutes - 13.3 MB VideoThe :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 CSS
September 21, 2009 07:00 - 8 minutes - 8.7 MB VideoOver 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 Data
September 14, 2009 07:00 - 7 minutes - 7.83 MB VideoRails 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 Tips
September 07, 2009 07:00 - 14 minutes - 15.2 MB VideoSecurity is important! Here I show seven different security flaws which are common to Rails applications ranging from mass assignment to CSRF protection.
#177 Model Versioning
August 31, 2009 07:00 - 9 minutes - 9.04 MB VideoIf 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 Searchlogic
August 24, 2009 07:00 - 13 minutes - 15 MB VideoSearchlogic 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 Bookmarks
August 17, 2009 07:00 - 11 minutes - 11.5 MB VideoBrowser 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 AJAX
August 10, 2009 07:00 - 13 minutes - 13.3 MB VideoLearn an easy, unobtrusive way to add AJAX functionality to an existing set of pagination links using jQuery.
#173 Screen Scraping with ScrAPI
August 03, 2009 07:00 - 15 minutes - 17.2 MB VideoScreen 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 Cache
July 27, 2009 07:00 - 6 minutes - 7.72 MB VideoRails 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 Job
July 20, 2009 07:00 - 10 minutes - 11.3 MB VideoIs 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 Authlogic
July 13, 2009 07:00 - 11 minutes - 12.4 MB VideoLearn 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 Caching
July 06, 2009 07:00 - 11 minutes - 12.2 MB VideoUse 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 Parsing
June 29, 2009 07:00 - 10 minutes - 11.9 MB VideoLearn two different techniques for parsing an RSS feed using Feedzirra in this episode!
#167 More on Virtual Attributes
June 22, 2009 07:00 - 7 minutes - 7.29 MB VideoUse 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 Fu
June 15, 2009 07:00 - 9 minutes - 11.2 MB VideoMetric 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 Multiple
June 08, 2009 07:00 - 14 minutes - 15.5 MB VideoUse 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 Ruby
June 01, 2009 07:00 - 8 minutes - 8.32 MB VideoCron 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 Association
May 25, 2009 07:00 - 14 minutes - 14.8 MB VideoCreating 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 Navigation
May 18, 2009 07:00 - 11 minutes - 11 MB VideoThe 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 Tools
May 11, 2009 07:00 - 7 minutes - 8.85 MB VideoEver 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 Authlogic
May 04, 2009 07:00 - 14 minutes - 15.2 MB VideoAuthentication 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 Cucumber
April 27, 2009 07:00 - 18 minutes - 19.8 MB VideoThere 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 Fixtures
April 20, 2009 07:00 - 12 minutes - 13.2 MB VideoFixtures 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 & Macros
April 13, 2009 07:00 - 18 minutes - 21.1 MB VideoYou can improve the readability and remove duplication in RSpec by adding matchers and macros. Learn how in this episode.
#156 Webrat
April 06, 2009 07:00 - 7 minutes - 9.17 MB VideoIf 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 Cucumber
March 30, 2009 07:00 - 15 minutes - 16.4 MB VideoCucumber is a high-level testing framework. In this episode we will create a new Rails application from scratch using behavior driven development.
#154 Polymorphic Association
March 23, 2009 07:00 - 8 minutes - 9.32 MB VideoPolymorphic 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 Prawn
March 16, 2009 07:00 - 10 minutes - 10.2 MB VideoPrawn 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 Extras
March 09, 2009 07:00 - 9 minutes - 9.24 MB VideoThis episode finishes up this series on Rails 2.3. Here you will learn about several smaller additions in 2.3.
#151 Rack Middleware
March 02, 2009 08:00 - 12 minutes - 13.4 MB VideoRack 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 Metal
February 23, 2009 08:00 - 9 minutes - 9.57 MB VideoRails 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 Engines
February 16, 2009 08:00 - 8 minutes - 8.73 MB VideoRails 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.3
February 09, 2009 08:00 - 11 minutes - 12.6 MB VideoIn Rails 2.3 you can provide a template when generating a new Rails application. See how in this episode.
#147 Sortable Lists
February 02, 2009 08:00 - 8 minutes - 8.34 MB VideoCreating drag & drop sortable lists is fairly easy using Prototype and the built in helper methods. See how in this episode.