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.
Measuring web server response time from the command line
HTTPing is a command-line tool that shows interactively tests a remote website and measures its response time a la ICMP ping. It’s on gemcutter, so to install simply: sudo gem install httping – or you can get and fork it on GitHub.
Improving Code using Metric_fu
Many people tell me that they find metrics interesting but don’t know exactly what to do with them. I try to explain how to use metrics to improve your code, by using it on a real world showing some of the refactorings.
Rack + Redis and Affiliate Tracking
Using Rack + Redis together for affiliate tracking systems. Not so much emphasis on Redis, just how it ties in. Rack win. read about it
BDD way pagination from BDDCasts
You saw in the previous episode how to spec and implement a list of Twitter results. In this episode you can see how to write Cucumber features and specs for “pagination” to check that only the required models make it to the view. Although will_paginate gem handles most of the pagination logic, you still need to handle the order of the results. Watch this episode to see how you can do this the BDD way.
Cool replacement for Test::Unit's test runner
If you still use Test::Unit (either by itself, or with something like context or shoulda), check out leftright. It works kind of like redgreen, but it does quite a bit more (details and installation instructions).
Rails Goal Tracking with Google Analytics.
A simple technique using Rails’ flash[] + the Google Analytics API to track goals (like signups) that don’t have a distinct URL of their own.
EngineY, a social networking framework in Ruby now available..
EngineY is an easy to use social network framework that is easy to customize and deploy as your own powerful and feature packed social media site. Empower users with their own blogs. Enhance collaboration with forums, groups and events. Find out who is attending your events with the built-in RSVP feature. Let your users post Twitter-like status messages. Track all the activity on your site with the live activity stream. Build a custom client to access all of your social data using the RESTful API.
ActionMailer and URL generation
Recently I had to find a clean solution for generating URL in ActionMailer templates for a quite complex rails app. Here’s the result. I’d like to receive your feedback.
ClassyFieldErrors: Rails plugin providing clean HTML/CSS handling of erroneous form fields
The developers at XING just launched a tiny Rails plugin to replace the Rails default way of using a div to highlight input fields with errors by just using a css class: http://github.com/xing/classy_field_errors. A related blog post explains the problem and solution in more detail.
Onis - Live ObjectSpace introspection for ruby
New! Useful for almost every ruby process you have - Onis
Most Common Issues Faced by a Ruby Newbie
Recently Chris Strom supplied the challenge for the second Ruby Programming Challenge For Newbies. In this blog post Chris talks about the most common “issues” faced by a Ruby Newbie, based on the Ruby solutions he received and evaluated for the challenge.
NullDB for DataMapper
Null database adapters in DataMapper for fun, speed, and isolation.
Announcing MK Ruby Users Group (ruby.mk)
If you are interested in Ruby programming language, Ruby on Rails framework or Open Source stuff in general, and you are near Skopje (Macedonia) MK Ruby Users Group is open for you.
Installing REE With The Snow Leopard SQL Server Stack
Building on my latest article about the SQL Server stack on Snow Leopard by adding Ruby Enterprise Edition to the mix. Installing REE With The Snow Leopard SQL Server Stack.
My Emacs for Rails Updated
We have updated My Emacs for Rails check it here
Liberate my Rails controller - make controller with current request available in the models, mailers
We made a small plugin to access current request and controller data from models, mailers etc. To use url helpers for example. More info and examples at astrails blog
Sweepy: distributed and scalable file caching expiration in Rails
Sweepy allows you to expire file-based cache (page cache and fragment cache) on Rails on multiple boxes. If you don’t want or don’t need to setup memcached, and just want to simply use Rails page and / or fragment caching, sweepy automatically handles page expiration. Sweepy scales well - Sweepy uses UDP broadcasts for cache cleaning. This way you can add as many machines as you want, and cache expiration times will remain the same. » sweepy on github
Cache Key For Collections In ActiveRecord
I’ve been working to add caching to an application and looked around for a solution to use a cache_key for lists of objects and found nothing out there. I’ve written up some details about adding a cache_key method for activerecord collections and I’ve thrown it into a simple group_cache_key gem
Get ruby-odbc running with stock ruby and unixODBC on Snow Leopard
This presented a problem - get the solution here.
2010 Fukuoka Ruby Award Competition – Enter Now to Win 1 Million Yen
The Government of Fukuoka Japan, together with the Fukuoka Ruby Award Selection Committee, is excited to announce the opening of the 2010 Fukuoka Ruby Award Competition. The competition is free to enter. The grand prize is 1 million yen (approximately $10,000). Applications may be submitted online. Completed entry forms must be received by 5:00 PM Pacific Time on November 20, 2009 to be eligible.
Try the sinatra_more gem
sinatra_more strives to be a central-hub for useful sinatra extensions such as tag helpers, form_builders, partials, and a whole lot more. I have been working with Sinatra a great deal lately and started writing and collecting various convenience extensions from project to project. Finally, this led me to release the sinatra_more onto github. Check out the README which gives a solid overview.
Riot: Protest the slow test
Riot is a fast and expressive testing framework. The syntax fundamentally cuts down on redundant code, so Riot tests are terse and expressive.
Ping your Rails app using acts_as_pingable
Rails plug-in for simply opening your Rails app to HTTP pings. Can produce pingdom.com XML. » acts_as_pingable on github
Irwi wiki plugin
Hi! I just released Irwi - wiki plugin for ROR, which allows to add working wiki in existing application in few minutes. Docs are in GitHub Wiki. Also, you can see a simple demo, it’s source code available at GitHub
A series of screencasts for Radiant CMS
presenting extensions, features or interesting techniques. Just released the second episode of Radiantcasts, which shows the installation and use of the Globalize2 Extension - an extension that allows you to translate site content in any number of languages. Helpful if you are using Radiant CMS.