Nearing a tipping point for LAMP with Rails

Tom Purl believes we’re getting near a tipping point for LAMP in the enterprise and that the missing piece, “…this bridge appears to be Ruby on Rails”:

So in addition to being able to use LAMP and increased productivity, why would large companies wan to use Ruby on Rails? Well, for starters, large companies are already using the MVC framework extensively with J2EE and .Net, so another slightly-different framework wouldn’t be too hard to swallow. Also, Ruby is is an object-oriented scripting language that shares many features with Java an C#. It certainly has its differences, but nothing compared to the differences between Cobol and Java or VB 6.

Commercial training in Rails

Tobias Luekte has had great success introducing newcomers to Rails. He provides tutoring sessions with hand-holding, sing-alongs, and all that good stuff that makes you really get what’s going on much, much faster than picking everything up on your own. He’s now offering this service to the public at large, so if you just got into Rails and want to purchase some focused training to help you get up to speed faster, Tobias is your man.

A few quotes from people how has had the pleasure so far:

“Tobias’ deep knowledge of the entire Rails system is what finally gave my company the confidence to go ahead with this project. His wisdom and insight into such things as database setup helped immensely. He has a great way of walking through real-world situations instead of merely abstract or simplistic scholastic examples.”
— Derek Sivers,

“Tobias’ support and mentoring has been invaluable — why spend a few hours hacking away with trial-and-error code when someone with real experience can solve the problem and clearly explain it to me in a fraction of the time?”
— Justin French,

The training can even be performed remote using VNC and Skype/phone. Read more at Leetsoft.

Tobias sets up Trac for Typo

Tobias Luekte has set up a Trac site for his Typo weblog engine. Typo has a slew of neat features including:

  • XML-RPC backend implementing the metaweblog api. MarsEdit and other desktop clients work great.
  • Comments
  • Textile by way of RedCloth
  • fulltext search
  • RSS2 and Atom export
  • CommentRSS export
  • Some use of caching and sweepers

So whether you’d like to run it or not, you’ll probably do well by having a look at the source.

Routing now available in beta gems

Routing is the new name for what was previously known as Directions. The move of responsibility from mod_rewrite and into Rails. This project is now good enough to have moved off the branch it was growing on and into the trunk and beta gems. This also means, however, that the trunk and the beta gems are currently not directly backwards compatible with existing applications.

We’re going to make sure that the migrating documentation is superb for release, but if you’re too impatient, here are the few steps you need to take on applications that doesn’t use custom URLs (those will be a bit more cumbersome to port):

1. Create config/routes.rb with the following content:

ActionController::Routing::Routes.draw do |map|
  # Add your own custom routes here.
  # The priority is based upon order of creation: first created -> highest priority.
  # Here's a sample route:
  # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action
  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id'

2. Replace public/.htaccess with:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]

ErrorDocument 500 /500.html

3. Add the new independent Active Support library to the default loads. For gem installations, it means adding require_gem 'activesupport' right underneath require 'rubygems' in config/environment.rb. It’ll then look like:

# Require Rails gems.
require 'rubygems'
require_gem 'activesupport'
require_gem 'activerecord'
require_gem 'actionpack'
require_gem 'actionmailer'
require_gem 'rails'

For SVN/tgz installations, it means adding vendor/activesupport/lib to the ADDITIONAL_LOAD_PATHS and add require 'active_support' under # Require Rails libraries. also in config/environment.rb. It’ll then look like:

# Followed by the standard includes.
).map { |dir| "#{RAILS_ROOT}/#{dir}" }

# Prepend to $LOAD_PATH
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if }

# Require Rails libraries.
require 'active_support'
require 'active_record'
require 'action_controller'
require 'action_mailer'

4. Add ActionController::Routing::Routes.reload somewhere in your config/environment.rb file.

That should be it. More detailed information will follow shortly.

Three Ruby on Rails programmers needed in London

Sean O’Halpin is advertising on the Rails mailing list for three Ruby on Rails programmers for work in central London, UK. Here’s the short pitch:

I am looking for 3 permanent top notch Ruby developers – 2 senior and 1 intermediate – to work in central London, UK. I head up a small group of programmers who produce business applications in-house for a large communications agency in the advertising market. Demand for our services is growing so we need to expand our team.

The requirements for the two senior positions are:

The senior programmers need 5+ years experience in a variety of languages and platforms dealing with the full project lifecycle in a variety of domains. You will be expected to gather requirements, design systems and manage a project from start to finish. You will report to me, the System Architect.

…and for the intermediate position:

The intermediate programmer will be reporting to one of the seniors and should have 3+ years experience and be confident in team leading and administrative skills. Your role will be to support the seniors and to be sysadmin for the team.

Exciting stuff. Read the full thing on the mailing list and get in contact with Sean if you’re interested.

Future Mail: Email yourself tomorrow!

Ben Sinclair has launched a pretty cool little application called FutureMail to email yourself at some specified time in the future to remind you about stuff. For people who use their inbox as a task scheduler, this is a great idea.