Posts from Luke Redpath...

New business cards

Check out our new Agile Evolved business cards which arrived today, just in time for RailsConf.

Tags: work

Decorator Pattern with Ruby in 8 lines

The Decorator Pattern is a design pattern that enables you to dynamically wrap behaviour around an existing object at runtime. It is especially useful when an object can have many variables that can be combined in different ways, which in turn affect it’s behaviour.

This small, simple implementation of the decorator pattern in Ruby sums up what I love about the hottest dynamic language on the planet.

Tags: development, ruby

The first rule of Barcamp…

Ongoing updates live (or when I get round to it) from Barcamp London. I’ll be posting notes on the presentations I attend as the weekend goes on.

Tags: development, general, work

The first rule of Barcamp...

Ongoing updates live (or when I get round to it) from Barcamp London. I’ll be posting notes on the presentations I attend as the weekend goes on.

Tags: development, general, work

Developing a Rails model using BDD and RSpec, Part 1

Writing Rails testing articles seems to be quite popular at the moment; seeing as I’m often quite vocal about testing on the #caboose and #rubyonrails IRC rooms I felt it was about time I posted one of my own. I have a large series of articles on testing with Rails in the pipeline, but until that is done, here is a nice and simple tutorial for newcomers to BDD and RSpec – the first in a two-part article exploring the development of a typical Rails model, using BDD techniques and the RSpec framework. If you are interested in BDD and RSpec, or new to testing in general and want to learn how to iteratively develop a model test/spec-first, this is the article for you.

Tags: development, rails, ruby

SoundBytes: geddit?

In the style of 37Signals “SunSpots” articles – a small collection of odds and ends not big enough to warrant an entire entry to themselves – I present to you SoundBytes; little bites of information (but bytes, because we are geeks, right?) that are, as any of my Northern friends would say, sound.

Tags: plugins, rails, soundbytes

UJS Rails Plugin 0.3: new name, new website

Dan and I are please to announce the biggest release of the Unobtrusive Javascript for Rails plugin – now simply known as UJS. This is a big release in many ways – we’ve got some important bug fixes in here, some great new helper functionality and most importantly: caching. The other big news is that the UJS plugin now has its very own website.

Tags: plugins, rails

Rails plugin repository *is* on the way

Ryan Daigle speculated on his blog that an official Rails plugin repository was in the works. He referred to an app checked into the Rails subversion repository recently.

I can announce that a Rails plugin repository is on the way, although not the one currently in the Rails repository. That particular app was a repository started by Rick Olson. The repository that is on the way is actually being worked on by myself and James Adam of Rails Engines fame.

Tags: development, plugins, rails

New blogging engine and template

Like many other people, I’ve moved my blog over to Mephisto by Olson and Palmer (doesn’t that sound like a 70s prog band?). I’d become very sick of Hemmingway though, even if I was using the less common white version, and with Mephisto coming with Hemmingway as its default theme its now even less unique, so it was time for a change. So I present to you…Sydney.

Tags: general

Unobtrusive JS 0.2.2 - "the two in one day!" release

I’m sure many people are aware of the risks in running pre-1.0 software/plugins and that there are likely to be many bugs discovered until that 1.0 release finally hits (and beyond).

Unfortunately, it takes really working with a Rails plugin to find problems and I have been doing so today. I encountered a strange error where the plugin was generating IDs for elements that shouldn’t have any javascript events attached.

Tags: plugins, rails

Unobtrusive JS 0.2.2 - “the two in one day!” release

Two releases in one day! The first time it was Rails' fault. This time it was...Rails' fault (OK I'm partly to blame for this one too). Grab 0.2.3 while its hot!
Tags: rubyonrails, unobtrusive_javascript

Unobtrusive Javascript broken in Edge Rails, small fix release

We're currently using Edge Rails and the Unobtrusive Javascript for Rails plugin in the forthcoming Rails Plugin Repository and after a Subversion update today, something seems to have broken the Unobtrusive Javascript plugin.

Tags: plugins, rails

The Adventures of David Heinemeier Hansson

Because every "hotest hacker on the planet" needs a Snowy.
Tags: general, rubyonrails

The RailsConf Europe HooHa

David posted an entry on the RubyOnRails weblog pushing people to go to RailsConf EU and a lot of people reacted negatively to it.

The thing that most people reacted badly about was the price. ?575 is a lot of money to spend for most people, especially freelancers and enthusiasts and the early bird price of ?475 is still not cheap.

Tags: general, rails

Release: Unobtrusive Javascript For Rails 0.2

Dan Webb and I are happy to announce the latest release of the Unobtrusive Javascript plugin for Rails. This release packs in lots of cool new features, a few changes to old ones and some performance enhancements.

Tags: plugins, rails

Rails Plugin Packs™ coming to RaPT

Good news - Geoffrey has agreed to roll Rails Plugin Packs into RaPT. I’ve already integrated it into the RaPT source code and a patch is winging its way to Geoffrey’s inbox as I write this.

Tags: plugins, rails

Rails Plugin Packs™ coming to RaPT

I've been contacted by Geoffrey Grosenbach who has told me that he wants to see the plugin packs functionality in RaPT. I've already integrated the functionality and have created a patch which should be rolled into the main source soon-ish. For those who want to try it out straight away, here are some instructions.
Tags: rubyonrails

Install your favorite rails plugins easily with Rails Plugin Packs™

After a brief brainwave on the way home from work, I came up with a simple solution to the problem, which I now present to you simply as: Rails Plugin Packs™.

Tags: plugins, rails

Install your favorite rails plugins easily with Rails Plugin Packs™

As the number of Rails plugins steadily increases, remembering and managing these plugins is getting increasingly difficult. There is some significant effort going into improving the process of installing plugins with the RaPT project. However, as you start to find your favourite plugins, you might often find yourself using the same group of plugins on every new Rails project that you begin. Wouldn't it be great if you could automatically install your own custom group of plugins in one go? Well now you can -introducing Rails Plugin Packs™
Tags: rubyonrails

Using Ruby hashes as keyword arguments, with easy defaults

Similar to many Rails helpers/methods, a lot of the methods I write often use an optional hash of options, or sometimes just a hash only, to simulate keyword arguments (often using symbols).

Tags: ruby
next page »