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.
OpenGem: A Handy Gem Plugin
Just thought folks might be interested in OpenGem. It’s a little ruby gem plugin that lets you type in: gem open rails and open it up right in your editor. If you’re curious about writing a plugin for ruby gems it’s probably a decent starting place.
Phusion Passenger 2.2.2 released
Please read the announcement for details. This version also fixes any Rack problems that you might have encountered since the Rack 1.0.0 release yesterday.
Rails Developers For Data Integrity: How to gracefully handle database key violations
Rails Devs for Database Integrity encourages the use of database foreign and unique keys, and it suggests ways to gracefully handle violation exceptions resulting from their use.
GitHub Issues Gem
ghi is a gem hosted on GitHub, which provides a command-line interface to GitHub Issues.
Clone TinyURL in 40 lines of Ruby code
Clone TinyURL in 40 lines of Ruby code. A simple how-to on writing a complete tinyURL-like URL shortener service in a few lines of code.
described_routes: resource discovery for Rails
described_routes: hierarchical, framework-neutral and machine-readable descriptions of Rails routes - another step toward really easy RESTful client API integration
rufus-decision, a decision table gem
rufus-decision 1.1 was just released. Decision tables are an elegant / naive way of representing some domain logic. Rufus-decision interprets decision tables (in their CSV representation) and produces an output based on matching fields in the input data.
RubyFlow Working Again: Sorry for the Issues
I upgraded Rubyflow to Rails 2.3.2 yesterday (to take advantage of a new feature) and even though everything seemed okay, the server had an old version of Rack and this caused some sporadic, nasty features that caused issues with posting comments and items (but not all the time!). Turns out it’s called the “Rails 2.3 params” issue and relates to having a pre-1.0 version of Rack installed. So.. now fixed :) Be aware of this if you upgrade your own apps.. (Update: Turns out to be something far more insidious.. a Rack 1.0 vs Passenger bug.. see in the thread for details.) [more inside]
Possible Rails Gotcha: ActiveRecord Caches Associated Records by Default
This post gives a more elaborate example (than the AR docs) of ActiveRecord’s default association caching behavior, which might trip you up if you’re not expecting it.
Introducing Garb: Ruby Wrapper for Google Analytics API
Introducing Garb! Access the Google Analytics Data Export API with Ruby
Deploy Your Rails Application in 2 Minutes with Heroku
A guide for setting up Heroku without doing any unnecessary work.
Apache configuration for single application with mutiple hosts
Configuring apache for single rails application with multiple hosts .This tutorial will explains about the apache configuration for single rails application with many virtual hosts
Accessing Rails Documentation, Fast
Accessing Rails Documentation, Fast (by Jack Chen) shows how RailsApi can be integrated into LaunchBar to give rails-documentation searching in a few button clicks (OS X)
How To Write a Gem Command Plugin
Curious how to write a gem command plugin? Would you like a more powerful and prettier gem search? This post gives a howto and introduces my own gem command, gem_grep.
Merb's dependency system ported to Rails
If you’re having config.gem woes and like Merb’s answer to gem dependencies, check out the dependencies plugin over at Github.
Introducing grrid.js: an open source javascript grid control
A blog post announcing the launch of the grrid.js website. It’s an open source, pure javascript, spreadsheet-like grid built on prototype.js. (Not strictly Ruby-related, I know, but Prototype is a Rails spin-off, and grrid.js might come in handy in a Rails project).
It looks to me like the Official rails site has been hijacked/expired
http://www.rubyonrails.org/ Anyone else getting redirected to an ad page?
Handsoap is a library for creating SOAP clients in Ruby
I wrote a soap client library, because I was fed up with soap4r.
Clearance is a Rails engine for authentication
thoughtbot has announced that Clearance is now a Rails engine. If you haven’t used Clearance, it is a simple, powerful authentication engine using a standard email & password scheme. It includes all the standard features thoughtbot clients regularly need such as email confirmation and password reset.
Rails Scenes Plugin - Creating a scene in Cucumber
The Scenes Plugin helps put the system in a set state before running cucumber or other tests. Particularly useful when dealing with complex systems needing lots of configuration.
C++ passes by reference, Java and Ruby don't (Examples)
I got a lot of comments for the previous article, that was explaining how Ruby passes by value, just like Java does. I thought that showing a simple example implemented in C++, Java and Ruby will clarify the idea. continue here.
Exclusive programming community?
I got an idea today about starting an exclusive programming community</a>. I share my thoughts on the subject, but wanted to get some feedback. Good idea? Bad idea?
8 tips for testing Rails apps with Cucumber
8 practical tips for your convenience / feedback. For people who already use Cucumber.
MRI Instrumentation
MRI Instrumentation allows for deep visibility into the Ruby VM on any existing dtrace enabled platform ( OS X Leopard, Solaris etc. ) without any recompilation - it just works.See the README for block, GC and method cache examples.
I18n for Sinantra – R18n
An agnostic and rich i18n tool R18n now has support for Sinatra.