Rails

Is SwitchPipe the Solution for Rails Shared Hosting?

Peter Cooper (who I interviewed recently ) has just announced SwitchPipe, which aims to make deploying and hosting Rails (and other frameworks, such as Django) applications easy. From the site: Introduction / Overview\ SwitchPipe is a proof of concept "Web application server" developed in Ruby. More accurately, it's a Web application process manager and request dispatcher / proxy. Backend HTTP-speaking applications (Web applications) do not run directly within SwitchPipe, but are loaded into their own processes making SwitchPipe language and framework agnostic.

Rails Snippets - 11/29

Holy Shmoly, Ruby 1.9 smokes Python away Initial performance numbers would seem to indicate that Ruby 1.9 (due by Christmas) will be lots faster. Quoted-Printable: My .irbrc If you spend a lot of time in IRB (most of us probably do), it’s worth taking the time to learn how to customize it. This is a good start. Faker Nice clean library to generate fake data. The home page says it’s a port of Perl’s Data::Faker library, which I’d never even heard of.

Rails Snippets - 11/13

RESTFul OpenID Authentication A plugin to do OpenID authentication in Rails, in a RESTful way. Off the Rails - An alternative Rails stack Competition is good. Merb and the like provide that competition to Rails. This article runs through an alternative to the Rails stack. It’s always good to keep an eye on what else is out there. Rands in Repose: The Nerd Handbook Ok, this is a bonus link. Not at all Rails related, but relevent to you if you’re reading this.

Rails Snippets - 11/7

Troubleshooting Ruby Processes: Leveraging System Tools when the Usual Ruby Tricks Stop Working A new book from O’Reilly on troubleshooting Ruby (and Rails) apps. From the overview: This short cut introduces key system diagnostic tools to Ruby developers creating and deploying web applications. When programmers develop a Ruby application they commonly experience complex problems which require some understanding of the underlying operating system to be solved. Difficult to diagnose, these problems can make the difference between a project’s failure or success.

Rails Snippets - 11/2

New in Rails: Request Profiler Jeremy Kemper recently committed a request profiler to Rails. It lets you make a request to a URL repeatedly, and then see an HTML or text report of where your code is spending it’s time. This looks very handy. Building Tempo With Rails - Part I A walkthrough of building an app with Rails, which includes feature definition, using Piston to manage plugins, and Restful Authentication.

Rails Snippets - 10/31

The Halloween Edition Obvious Code: Creating a simple news publishing system in Rails 2.0 One of the first tutorials I’ve seen that focuses on Rails 2.0. Deploy a Ruby on Rails app on EC2 in five minutes This would seem to make deploying a Rails app on Amazon’s EC2 very simple: EC2 on Rails is an Ubuntu Linux server image for Amazon’s EC2 hosting service that’s ready to run a standard Ruby on Rails application with little or no customization.

Rails Snippets

A collection of Rails links Using Paypal with Rails This is a nice step-by-step article on integrating PayPal with your Rails application, using ActiveMerchant. Rails 2.0 Features: Multiple Views I’ve only skimmed over the new features in the upcoming 2.0 release of Rails, but this looks like one of the nicest features. This is a good explanation of how it works and why it’s useful. Mongrel 1.0.3 is out A bugfix release of Mongrel is out.

Relevance Announces Streamlined

Update: I somehow managed to misspell Relevance’s name. Fixed. I’m missing RailsConf this year (I have no excuse, I live two hours away). I’m living vicariously through the other attendees though, keeping an eye on the blog posts. One announcement that I just caught was that Relevance has announced Streamlined, which is a framework on top of the Rails framework. Some of the interesting features include (pulled from Justing Gehtland’s post):

6/23 Ruby & Rails Links

A few links that caught my eye today: An introduction to Ruby on Rails for DB2 developers Nice article if you’re a DB2 user and want to know what the fuss is about. Written by Edd Dumbill. Ruby-Gnome2 Website - Appears to be a decent GUI toolkit for Ruby. I wish someone would get QT’s Ruby bindings working on Windows. The thing I miss most about Python is PyQT. Sapphire in Steel: The Little Book of Ruby - Nice introduction to Ruby with plenty of code samples, in PDF form.

Django vs Rails

There’s a relatively in-depth comparison of the Django framework to Rails over at Sam Newman’s site. It appears to be a relatively fair comparison. It’s interesting that both frameworks were extracted from large development projects in roughly the same time period, although Rails has been publicly available for longer, and has more mindshare at the moment. I’m happy with Rails, but I wonder whether I would have bothered with it if Django had been available when I started looking at Rails.

How to Use Eclipse as a Ruby on Rails IDE

Update 11/23/2005: Months later, this is still apparently a popular topic, as it’s one of the most viewed posts here. Time has passed though, and there’s a better option: RadRails. It’s built on Eclipse, but includes Rails-specific tooling, which the configuration discussed below does not. It’s well worth your time to check out. In this short tutorial, I'm going to walk you through setting up a code editing environment for Ruby on Rails using the Eclipse IDE.

Automatically Deploy Your Rails App to a Test Server

Mike Clark has a great script to automatically deploy your Ruby on Rails application to a test server whenever someone commits a change to the subversion repository. I’m just starting to use svn for my projects, I’m going to have to try this out. You can read the article yourself here.

Great Presentation on Ruby on Rails

Obie Fernandez of ThoughtWorks put together a great presentation on Ruby on Rails for the Agile Atlanta group. It does a good job of covering all of the things that make Rails great. See for yourself here. (via Curt Hibbs post to the rails mailing list)