The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Jekyll: Sites Made Simple
Sitepoint has published an article on Jekyll, a static site generator. It goes in detail on installing Jekyll, creating the basic structure, testing the site locally and deploying. It even has a short introduction to Liquid, the tagging engine used by Jekyll. I have found this to be the best available walk-through on Jekyll till now. Check it out here.
Authenticated S3 GETs For Private Objects Using Paperclip
A solution on how to use both security through obscurity, your own controller access control and finally AWS::S3’s own authenticated GETs for private objects all using the popular paperclip gem.
Boson 0.2.1 Released
Boson is a unique command framework whose commands are written in plain ruby and usable from the commandline and irb. The latest release introduces more features that are unique to command frameworks: powerful one-liners, custom option types, library dependencies, pipe options, etc. Boson also comes with newfound querying capabilities which make it easy to build Ruby reference commands.
HTML Sanitization In Rails That Actually Works
A sanitizer for Rails that escapes unauthorized and unclosed tags, stopping (clueless malicious) users dead in their tracks. Read more, including source code »
Deep In Rails: ActionMailer#deliver Part II
When we left off last, we were just about to get into rendering the message. Let’s recap that code … read more »
Amp - Mercurial rewritten in Ruby. Easily customizable. Open to contributors!
We’ve been working for about 8 months on-and-off on a project we’re really excited about: Mercurial, re-written in Ruby from the ground up. It’s called Amp, and it’s out in beta form! [more inside]
Sass Supports Rack
Sass, the CSS precompiler, now supports all Rack-based frameworks.
New Screencast: Introduction to MongoDB - Part I
In this screencast, you will see the basic CRUD operation using MongoDB shell. This is the first installment of a series on MongoDB. Watch the screencast at TeachMeToCode.com
Using Amazon RDS with Heroku / Rails
Amazon has a MySQL service. It scales up to 68gb ram and deals with backups for you. Heroku lets you use this. Instead of paying $200/month for the Ronin DB, you can just make your own db with RDS on aws and only pay for dynos from heroku and not have to deal with migrating to posgres. Check out how easy it is.
Blueprints - new replacement for fixtures and factories
A new replacement for fixtures and factories Blueprints has been released. You can check it on github or read an article I wrote about it
A uniquely powerful Ruby parser for Temporal Expressions.
Just released a new Rubygem: Temporals can parse quite complex natural-language (English) temporal expressions, such as “2:30-3p every mon and wed and 3-3:30 on friday” and “1st-2nd and last Thursdays of March and April 5-6:30pm and March 16th - 24th at 2-2:30”.
Public Alpha of MagLev Released
Though first announced in early 2008, the highly anticipated super-implementation MagLev has finally got its first public alpha release. I’ve written about it on Ruby Inside and shown how to get it running.
State of Ruby VMs: Ruby Renaissance
There are 8 alternative Ruby VM’s and 4 of them will hit 1.0 status in the upcoming year. A detailed look at the past year and where the community is heading (hint: it’s an exciting time to be a Rubyist).
SmallRuby: Ruby implementation for Smalltalk/X VM
SmallRuby is a new Ruby implementation for the Smalltalk/X virtual machine. On some selected benchmarks, SmallRuby trumps existing Ruby implementations 10-40x performance-wise (though take this with a pinch of salt for now). This is a project worth watching..
Setup REE, nginx and Passenger on Ubuntu
A short guide on setting up Ruby Enterprise Edition (REE), nginx and Passenger, for serving Ruby on Rails applications on Ubuntu.
RAIN - The Smart Repository Management Tool
I just launched RAIN v0.3.2 Check my post about it with examples and a screenshot click here
Update on my Rails Learning Experience
After learning how to build a cart than can keep track of orders, it’s time to make those orders happen. When we were dealing with our cart, we didn’t worry about creating database tables for the core thing the cart holds: cart items, so the time has come to finally create a model for that and for the orders taken (so they too will be stored at the database), and we’ll do it by using script generators at the command prompt… Read More
G: Like Kernel#p but outputs to Growl on OS X
“g” is a new library that provides a global “g” method that you can use to inspect objects much in the same way as Kernel#p. The difference is that the output goes to Growl, a popular OS X global notifications tool. It’s technically an easy gem install and go, but if you have problems with it not finding Growl, this blog post about getting ruby-growl working should salve your distress.
Complete Code Coverage For Rails
I wrote a short blog post on checking the combined code coverage for different styles of Rails tests.
Reflection: Keep your development machine in sync with production
I just released Reflection. A gem, designed to keep your development system in sync with your production system’s files and databases.
Cached pages with dynamic partial == Easy-Esi
Just replace <%= render ‘partial’ %> with <%= esi_render ‘partial’ %> and the whole page can be cached, but these partials will be freshly rendered. Easy ESI
Announcing Ruby Community Statistics
We just launched Ruby community statistics, which gives access to various metrics across the community. We generated some graphs based on the current data, a code metrics scatter plot tool for making comparisons, and made all of the data available via our API so you can dig into it. Now you can get answers on question like, does code with more duplications have higher complexity?
A Rubyesque interface to Gmail
Daniel Parker of BehindLogic.com has just released ruby-gmail with the following features: [more inside]
rails_best_practices gem
ihower introduced his Rails Best Practices presentation before, my rails_best_practices gem is used to automatically check your rails app files according to his presentation.