September 24
Rails produces some pretty nice URLs. The URLs don't setup automatically though, you need to setup routes to match them to sections of your application. In this screencast you'll learn how they work, and how to set them up yourself.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 18.9mb, Time: 07:34
June 08
So you're just about to crack on and dive into that code, but wait, you don't even need to do that! Rails comes with generators for basic functionality so you can get going as quickly as possible.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 11.7mb, Time: 03:50
May 31
When starting a project Rails automatically creates a large tree structure of folders and files, so what are they all for? Find out in this screencast.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 22.8mb, Time: 05:01
May 30
I'd like to introduce my new series of screencasts called "Rails 101", I realised that while Rails is really taking off, many people are put off by the lack of comprehensive beginner screencasts and the need to shell out masses of money on expensive books.
While these screencasts will be aimed at beginners, I'd hope that more advanced Rails developers will find them useful to fill gaps in their knowledge. Alongside the videos there will also be a transcript so if you don't have the bandwidth or environment to watch videos, you have an alternative.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 9.8mb, Time: 03:37
May 24
I've got a useful, quick tip for you this week. Loading in a configuration file can be really handy when you have a few settings that might change in the future of your application, such as contact email addresses or the strength of a spam filter.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 13mb, Time: 01:43
May 13
With social applications becoming increasingly popular it wasn't a surprise when I received a question regarding setting up a fully dynamic permissions system for one.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 71.3mb, Time: 17:34
April 27
With so many public-facing, interactive websites these days everyone is doing their best to combat spam. Being that I am a perfectionist, I hate relying upon external services (such as Akismet) if at all possible, so to protect ThinkRefresh from spam I coded a custom spam filter, which may be advanced, but is pretty simple to implement.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 38.7mb, Time: 05:54
April 20
The log is an essential tool for all Rails developers, both for development and production environments. There are a few problems with the log though, such as not splitting it's files up, and requiring the developer to actively go looking for problems within it, in this screencast I address both of these issues.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 52.1mb, Time: 07:58
April 15
I use scaffold for the basis of all my applications at the moment, it provides a sturdy starting point that you can easily build upon, but there are a few issues that need to be solved before getting started, the first of which is deletion.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 32.0mb, Time: 05:10
April 05
You may have used helper methods before to streamline the code in your views, and you may have even used block helpers, to further improve your refactoring, but probably not block helpers with their own methods. This technique is how text_field :product, :name became f.text_field :name.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 40.9mb, Time: 09:38
March 31
Having to write separate JavaScript to validate user input before submission of forms can be a right pain, not only is it not very DRY, but it wastes time. Using AJAX you can cheat, harnessing the server-side Rails validation you have already written.
Download Screencast: Mirror 1 | Mirror 2 | iPhone Size: 47.5mb, Time: 12:24