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.
Fun with ruby arrays, hashes and benchmarking
My friend always jokes about waiting for a late post from me on subjects that come up from the day. I had one of this discussions today about making a hash from arrays that turned into a learning exercise that you can read about here
Ruby AMQP Benchmarks
AMQ Protocol gem is 4.875x faster, and it needs 5.417 less objects than current AMQP encoder/decoder in the AMQP gem, here are some benchmarks I wrote (nice graphs included :) ). AMQ Protocol gem will be integrated into the next AMQP gem release, so everyone shall benefit from this! [more inside]
capistrano_winrm version 1.0.0 released
The capistrano_winrm extension just reached version 1. It allows for finer-grained connections to Windows servers as well as Kerberos authentication and encryption to remote boxes on an Active Directory domain. More info here.
Sinatra 1.2 released
We are happy to announce a new Sinatra release - Sinatra 1.2.0. More infos can be found here.
Sinatra 1.2.0 Released
Konstantin Haase has just announced the release of Sinatra 1.2.0. It now supports the Slim Template Engine, inline Markaby, conditional filters, named captures, and more. Congrats to the whole Sinatra team.
Undestand how Cognitive Load can impact your code
Undestand how Cognitive Load can impact your code.
Reloading Factory Girl Factories in the Rails 3 Console
Aaron’s post on Reloading Factory Girl Factories in the Rails 3 Console
Introducing Tabulous: Tabs in Rails
I just released a gem that makes it very easy for you to add tabs in Rails. Enjoy!
Phusion Unveils 'Union Station': A Webapp Monitoring Tool
Phusion (the folks behind Passenger) have unveiled their latest creation - a webapp performance monitoring and behavior analysis service called Union Station. It’s currently free during the beta phase (though only the first 1000 apps will be accepted) but will eventually be a paid service.
Capybara (and Selenium) with RSpec & Rails
A quick tutorial on how to get started with Capybara in an RSpec 2 + Rails 3 application.
Cinch 1.1.2 released
We have just released version 1.1.2 of Cinch, the IRC bot building framework. The 1.1.2 release fixes a bunch of small bugs. Check out the project on GitHub
Testing Rails 3 generators with RSpec
I just wrote an article showing how to test generators with RSpec the same way you can do with test unit. It’s a thin wrapper around Rails::Generators::TestCase and it’s released as a gem called generator_spec.
Skinny controllers are not enough
An article comparing Inherited Resources and Decent Exposure to DRY your controllers.
ruote 2.2.0 released
Version 2.2.0 of ruote, a workflow engine, is out. This tool follows workflow definitions to route work[items] among workflow participants.
Ruby on Rails: Scaling Your App for Rapid Growth
Read this interview by Jolie O’Dell on how co-founder of Gowalla, Scott Raymond, scales Rails. He touches on some of the NoSQL he uses in tandem with PostgreSQL. Includes some code snippets too. Interesting read.
Introduction to Sass: Part 2 (5 Minutes)
We’ve just released the free Introduction to Sass: Part 2 screencast. In this we follow up by showing how to use @import, partials, interpolation and the two types of comments available in Sass. We’ll also show you how to reference the parent selector, which is particularly handy when dealing with pseudo-classes. Check it out.
Apotomo 1.1 released: Lean code, better widgets!
The web component framework for Rails lost 50% of its core and still got better and simpler. Read here how it works.
Testing against multiple gem versions with bundler
Short example setup for testing a gem/plugin against rails 2 and 3 using bundler.
Better Separation of Concerns in Netzke Core with Ext.Direct
Netzke is a Sencha Ext JS and Ruby on Rails component framework. The new blog post explains some interesting recent improvements to the Netzke client-server communication mechanism, which became possible thanks to the power of Ext.Direct.
Interview with David Heinemeier Hansson
Interview with David Heinemeier Hansson - creator of the web-framework Ruby on Rails and a partner at 37signals - at lesscode.se.
Ruby Social Club presentations
Ruby Social Club Milan presentations: Tame accidental complexity (introduction to NoSQL with MongoMapper) , RSpec Best Practices, Timetap (in itlaian), BioRyby (in italian),
Make deployments even more robust
Going back to Vlad doesn’t mean you should ditch all the things you learned from Inploy. Leverage RVM, bundler with the least effort and most control. Make deployments even more robust.
How do I smell Ruby code?
Timon Vonk talks about Ruby code smells in an effort to improve Ruby code. A guest blog post on RubyLearning.
Gem review: Octopus, database sharding for ActiveRecord
A quick overview about octopus, the database sharding gem
Padrino Ruby Web Framework 0.9.21: Nested Forms and much more
Padrino 0.9.21 was just released today. Padrino is an open-source ruby web framework that builds on Sinatra providing a variety of well-integrated components from an admin backend and form helpers to I18n support and generators. The biggest new feature is the oft-requested nested form object support which allows forms to build multiple related objects at once. In addition translation support for Traditional and Simple Chinese are now available. There has also been a great number of bug fixes in routing and component compatibility as well. The code and sample projects can be seen on Github.