Ruby-on-Rails

How to use GMail’s SMTP Server with Rails

Rails' ActionMailer library can send e-mail for you, and while it can be set up to use almost any SMTP server, special requirements by Google's GMail SMTP server have presented Rails users from taking advantage of it. Ages ago I mentioned a solution to the problem, but it involved downloading a separate application called 'msmtp' and performing an ugly system call from your application.

Read more →

Rails 1.2 Released

No editorial on this, as I want to get it out quick, and I know some readers aren't subscribers to the official Rails blog.. but.. Rails 1.2 has just been released! Or, more accurately, Rails 1.2.1, as the obligatory bug-fix release followed on a little more quickly than usual :) You might want to get it straight away before the servers melt down with the rush tomorrow. Just use gem install rails --include-dependencies as usual.

Read more →

The Easiest Way To Start A New Rails Projects With SVN

You're about to start a new Rails project. Do you type rails <project name>? No, "Stop using the rails command", says Josh Susser. If you create a dummy / default Rails project that's set up just the way you like it with plugins, your own extensions, and all those carefully defined svn:ignore flags, you can just create a new Rails project with a simple svn copy. So simple, but I've totally missed this idea, and it's a real timesaver.

Read more →

css_dryer: DRY Up Your CSS

css_dryer is a Rails plugin by Andrew Stewart that makes putting together stylesheets for your Rails applications more efficient than ever before. It supports nesting and basic variable interpolation. For example, here's an example of nesting:

Read more →