• Could not connect to Twitter

New ShowMeDo: 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.” – video here, Ryan Bates

New ShowMeDo: 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.” – video here, Ryan Bates

New ShowMeDo: 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.” – video here, Ryan Bates

New ShowMeDo: 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.” – video here, Ryan Bates

New ShowMeDo: 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.” – video here, Ryan Bates

New ShowMeDo: 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.” – video here, Ryan Bates

New ShowMeDo: 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!” – video here, Ryan Bates

New ShowMeDo: 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.” – video here, Ryan Bates

New ShowMeDo – Rails: Find Through Association

“No need to pass foreign keys in find conditions, just do the find through a has_many association.” – 1 video, 2 minutes, Ryan Bates

New ShowMeDo – Rails: Dynamic find_by Methods

“Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods.” – 1 video, 2 minutes, Ryan Bates

New ShowMeDo – Rails: Caching with Instance Variables

“Learn a quick way to improve performance. Just store the end result of an expensive command in an instance variable!” – 1 video, 2 minutes, Ryan Bates

New Ruby ShowMeDo: Build a Full Rails Server on Ubuntu

“This 10 minute demo shows how easy it is to install Ruby, Rails, Apache, Mongrel, Subversion, and MySQL on an Ubuntu server. Capistrano and the deprec gem (deployment recipes) are used to automate the installation process with only a few commands. It finishes with a deployment of a Rails app to the newly built server!” [...]

New Ruby ShowMeDo: Using and Configuring Ruby’s IRB

In many ways irb is to Ruby what IPython is to Python. Irb is a interactive shell for the Ruby language that allows you to test your code and make sure that you have the syntax and logic correct before it goes into your application.

Eric Lake shows you how to use irb and also how [...]