Cool

Write C code inline with your Ruby code

Ruby Inline is an analog to Perl's Inline::C. Out of the box, it allows you to embed C/++ external module code in your ruby script directly. By writing simple builder classes, you can teach how to cope with new languages (fortran, perl, whatever).

Read more →

Rails Application Visualizer

Rav
There's been talk about producing something like this in the Rails community, and it seems someone has finally done it.. a Rails Application Visualizer. Simply run a rake task and it produces a graphic showing your models and how they relate to one another. It requires the GraphViz library to run, and is only in its early days. Looks promising though!

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 →

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 →

HTTP Authentication plugin for Rails

People who are considering Rails as a platform often ask what it's integration with tools like HTTP authentication are like, often because that's the way they're currently solving certain problems. Up till now HTTP authentication has been something you've had to implement yourself, but now there's a plugin. Install it like so:

Read more →

PX: A quick and silly Ruby obfuscation system

For the fun of it, I developed a quick Ruby obfuscation tool a few weeks ago. It's not a proper obfuscater that changes variable names and such, but it'll keep your code from being immediately understood. Here's the library, px.rb:

Read more →