Elsewhere

The Ruby Source Cookbook

Rcookbook
Inspired by the legendary (amongst Perl programmers anyway!) Perl Cookbook, comes the Ruby Cookbook. It has the equivalent examples from the Perl Cookbook but in Ruby form, of course. The basic sections are mostly complete, although some of the later sections are barely covered yet. Still, if you want to see the basic recipes for dealing with strings, numbers, dates and times, arrays, hashes, file I/O, process management, and so on, it's a cute little resource.

Read more →

Quick Ruby Reference / Cheat Sheet

This cool Ruby cheat sheet quickly runs you through.. reserved words, syntax rules, escape characters, regular expression characters and formats, file mode strings, special variables, expressions, operations, built in classes, and more. Extremely useful to beginners and advanced Rubyists alike.

Read more →

How to format Ruby code for HTML and blog posts

You might have noticed this blog has nice, syntax colored code excerpts, as does Code Snippets. Jim Morris looks at how you can pull this off in a few different ways. One quick and easy way is to use syntax.carldr.com, a Web site that converts any Ruby code you paste into the correct syntax colored HTML. Currently I use TextMate and an external script using the syntax gem, but might use that site instead as it's easier!

Read more →

undo_helper: Add ‘Undo’ to your Rails application

The creator of co.mments, Assaf Arkin, a Rails developer, has created a plugin that makes it easy to add a Undo feature to your Rails app. Instead of warning users about things simply let them do it, but give them the choice to undo afterwards. Assaf's plugin doesn't cover all the bases, but it's easy to build upon for creating your own system. For deletion, for example, you'd want to come up with a way to keep the data floating around for a while.

Read more →

Mega Ruby on Rails Reference

This is a "short" Ruby on Rails reference. It's goal is to give you an overview over the most used functions / methods / classes. It's not a tutorial, but as a handy guide when you already know your way around.

Read more →

Five great tricks with Rails views

Bruce Williams has a great set of articles going on on his blog called "Rails Views". Each one looks at a different aspect of Rails' views and templates system and how you can use it in a cool or different way. You are bound to learn something or come up with some ideas on how to make your views more efficient (I sure have!). Here are some of the recent posts in the series:

Read more →