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.
Building a Twitter Filter With Sinatra, Redis, and TweetStream
I just wrote a little tutorial about how to implement a Twitter filter web app using Sinatra, Redis, and TweetStream. It discusses both the architecture and rationale for my technology choices, as well as presenting the actual code. You can see my example app live at twatcher.com. Hope this is useful.
Webrat matchers for HTML validation in Cucumber
Did you ever need to validate HTML output using Cucumber steps without driving a browser? Well, we did and here’s how we fulfilled this need.
Using pickle and cucumber
pickle is a tool for cucumber users which helps in leveraging your factories to create and refer to models in your scenarios. Pickle is the subject of Ryan’s latest Railscast.
Benchmarking Ruby exception handling
Exception handling is great, but is it always the best thing to do? http://effectif.com/ruby/cost-of-exception-handling
How to keep your stylesheets clean and organized using Rails (Tutorial)
styled_objects is a Rails plugin for simplifying stylesheet management on your application. Check out this tutorial that guides you through building a web application from scratch using Rails with the styled_objects plugin.
Rubyists.EU: Stairway to the European Ruby Community Integration
Rubyists.EU is a free of charge communications platform, which aims at encouraging better communications among Ruby communities and individual Ruby enthusiasts across Europe.
Latest GitHub gem released
Now available on gemcutter, the github gem is alive and kicking with an exciting 0.4.0 release</a>. To install:
$ gem sources -a <http://gemcutter.org>
$ gem install github
To see all the options:
$ gh
Post any issues/bugs. Latest continuous integration status via runcoderun: green.
Scaling Rails – On The Edge – Part 1
Gregg Pollack has released a new episode in his Scaling Rails series. This is the part 1 of 3 screencasts scheduled to release in the near future. In the first of these, Gregg introduces three tools: Bullet, Rails Indexes and Scrooge. Check out the blog post or download the episode.
Ken 0.2.0 (Ruby Freebase Lib) now also wraps the new ingenious Topic API
I just added support for the new Topic API to the Ken Ruby Freebase Library. As usual the library wraps the JSON result of the web service to convenient Ruby Objects. The wrapped Topic API may be a good starting point for those who wanna get going with Ruby and Freebase. It should now be even easier to build simple Ruby Freebase apps (based on the Topic API).
Real World Rails Middleware
Here’s an article I wrote fairly recently on Real world uses of Rails middleware and metal.
Debug Logging for a Rails Production site
If you’re running a production site but want debug level logs for one request, you may be interested in debug level logging for a single Rails production request.
DTrace and Ruby on Rails with Leopard/Snow Leopard
I just posted a short blog post about using DTrace with Ruby on Rails.
Next Ruby 1.9 Faster Thanks to Japanese Kid
Under the tutelage of Koichi Sasada, a Japanese junior high student has boosted the performance of several key methods in the edge/next version of Ruby 1.9.
DailyJS - a new Javascript blog
This is not strictly Ruby-related, but many of us Ruby hackers are web-developers in general, so I thought this might be of interest… With a couple of pals, I’ve launched a new Javascript blog called DailyJS which we aim to be a bit like a Javascript version of Ruby Inside. You can read more about our motives on my personal blog.
Merb is still alive - Version 1.0.15 is brand-new
Merb is still under active development. There are great improvements in the latest gem release. Besides, the official development repository has moved to http://github.com/merb/merb.
A RubyGem to wrap JsTestDriver: JavaScript autotest and more
I’ve written up a piece on JsTestDriver, the new-ish testing framework from Google. It’s pretty solid: allowing you to have tests executed in one or many browsers, yet still run them on the command line (or in an IDE) Check it out if you haven’t already. I’ve written a small gem that wraps JsTestDriver, giving you colored output in the shell as well as autotest (built on top of the awesome Watchr gem): Jstdutil
Clarity - Shopify's log file forensic tool
We just released Clarity, a log search web app that we created to assist our developers and customer support with finding important information in log files on our production system.
New Screencast: Styleize your Rails App with Themes
Don’t want to take the time to create a layout for your new Ruby on Rails application? Don’t worry. Use the Themes plugin! In this screencast, I show you how to easily add a layout with built-in menus to your existing Rails application using only 1 line of code. Watch the screencast at TeachMeToCode.com.
Devise: authentication for lazy programmers
The guys at Plataforma just released a Devise update and blog post about it. It mainly include new configuration options and generators to setup your authentication system even faster! Check it out!
Hacking Someone’s Gem with Github and Gemcutter
Dr. Nic has written yet another useful post on how you can hack and release gems. He details forking via the Github gem and instantly sharing it as your gem via gemcutter. Click here to read it.
RCAP - Common Alerting Protocol for Ruby
Over the past month I’ve been scratching a bit of a coding itch and implemented the Common Alerting Protocol as a Ruby gem called RCAP.
Quit Pretending. Use the Web for real: Restfulie
Me and Guilherme Silveira just released restfulie, a ruby gem that provides resource+hypermedia support to rails applications. More information can be found here.
Dr Nic's First Look at Rails 3.0 Pre-release
Dr. Nic has written a blog post on the steps required to setup a Rails 3 application. It’s a pretty detailed article which covers using Edge Rails to setup a Rails app, using Bundler to fetch dependencies and the whole story behind generators. Read it here.
Using the New Gem Bundler Today
Yehuda Katz wrote an interesting post on his blog on using the new gem bundler today. It goes over the design goals, how to use bundler in a non-Rails or Rails 2.3 application. Bundler 0.7 is also releasing soon. Read it by clicking here.
Rails best practices slides at kungfurails
This’s my slides about best practices, anti-patterns, teaching you how to write better rails code. Other videos and slides see Kungfurails website.