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.
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.
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.
JS.Class 3.0: a portable JavaScript class library based on Ruby
I just released JS.Class 3.0, a portable modular JavaScript class library based on Ruby. It includes a cross-platform package loader and testing framework, and a ton of data structures and other useful OO goodies.
Ruby WinRM v1.0rc1
Just pushed out version 1.0rc1 of the Ruby WinRM gem. With it you can run a Windows cmd shell or powershell scripts from Linux or MacOS. This version brings a lot of new features including Krb5 authentication and message encryption for Active Directory connected hosts. Instead of the WinRM service configuration that was once needed with the prior gem you can now simply do a ‘winrm quickconfig’ on the Windows node and you’re off. gem install winrm –version=1.0.0rc1 or check it out on github: http://bit.ly/ruby_winrm
Ruby on Ales 2011 - Speakers Announced
The Ruby on Ales 2011 Speakers have been announced. Check them out at the RoA Conference Site. We have a few more speakers to announce as soon as they confirm. Stay tuned!
Get Started with NSSavePanel in MacRuby
Get started with NSSavePanel in MacRuby just enough to get you going. Sometimes seeing something basic is all it takes.
Rails: forgery (csrf) protection for AJAX requests—changes in 3.0.4
Rails 3.0.4 changes the handling of forgery protection for AJAX requests. Details in blog post…
Developing Rubyist: Reverse and Map Functions
New Developing Rubyist Blog: Fun with Arrays and Hashes. Details on two simple but overlooked functions: Reverse and Map.
Review: Eloquent Ruby (Russ Olsen)
I finished reading Russ Olsen’s new book Eloquent Ruby a few days ago. Here’s my review of the book.
Keeping up with the Rails Lighthouse
Keeping up with the Rails Lighthouse can be quite a task. In this article I’ll explain what I did to make it a bit more manageable.
TinySite, a small static site engine with Heroku and DropBox in mind
I just released the very first version of TinySite. TinySite lets you edit your sites content locally via DropBox (or any DropBox iPhone/Android editor) and works beautifully on Heroku.
Algorithms, A Dropbox Challenge And Dynamic Programming
There aren’t enough implementations of interesting algorithms in ruby. The subset sum problem has a couple of interesting algorithmic solutions, it also happens to be the object of a programming challenge I came across recently. So, here are two solution to this problem that I came up with (a naive exponential time one as well as a better dynamic programming one) both implemented in ruby.