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.
Meta Tools Gem Released
I’ve created the gem “meta_tools”. Blog post: Link, Gem: Link, Git: Link
"Rails Best Practices" Review
Over the weekend I had a chance to play around a bit with Rails Best Practices, so I thought I’d share my review.
Barney 0.8.1 hits the shelves!
Barney is a library for sharing data between processes in a easy and natural way. I posted it here a while back, but the API has changed and matured a lot since then, so I thought I’d repost. The GitHub repository has a few samples, and links to the API docs.
Securing Resque::Server in Rails 3
A really simple way to secure Resque::Server in a rails 3 app.
Why you should stop doing Class-Oriented Programming
Do Object-Oriented instead. Here’s why
Crafty, a simple library to build HTML
Unsatisfied with the existing libraries that allow you to build HTML with Ruby, I just launched Crafty. Crafty is different, because it gives you a set of helper modules that you can use to build HTML in any Ruby class. Consider Crafty a friendly, framework-agnostic alternative to clunky Rails helpers such as content_tag. It is also faster than most alternatives. Crafty is not a templating language, but it helps to create builder classes, similar in nature to Rails FormBuilder. Learn more.
Routes: rake routes 10x faster with search feature
https://rubygems.org/gems/routes - a simple gem to parse your rails routes 10 times faster with the possibility to search in them like this “routes events show” to display all the routes containing the words events and show.
Writing Rails Engines #1: The basics
Engines in Rails 3 are an awesome way to organize features that you want to reuse in other apps. Here’s how to get started.
Agnostic roles in Rails using metaprogramming
Just posted an article on building agnostic roles in rails using some metaprogramming, check it out!
test_xml released - Testing your XML has never been easier!
We released test_xml to help you testing XML with Test::Unit, MiniTest, RSpec and Cucumber. Here’s an overview of the assertions and matchers making your life simpler.
Why so many V/Ps?
I was recently involved in a discussion about what makes an Agile company successful. Of course there are many opinions, blogs, books and studies on this topic but in this blog post I discuss a very simple formula that makes it very easy to calculate.
Setting up Rails 3 with Compass, Haml, Sass, and SCSS.
Just wrote up a quick cheat sheet on setting up Rails 3 with Compass, Haml, Sass, and SCSS. There’s also a mini tutorial at the end for the newbies.
Rails Authentication Basics
I recorded a podcast episode about the principles you need to understand to implement authentication in Ruby on Rails and I go over some best practices and security details I feel are often neglected.
A simple maps mashup with Rails and GeoKit
A couple of weeks ago we created a simple maps mashup with Rails and GeoKit. We’ve just posted a brief summary of the project which might be of interest to others.
Comparing images and creating image diffs
I’m sure you’ve seen the image diffs Github released last month, which is a really nice way to see the differences between two versions of an image. In this article, I’ll try to explain how a simple image diff could be built using pure Ruby and ChunkyPNG.
RubyConf India 2011 - May 28th and 29th in Bangalore
After a successful conference last year, RubyConf India is back for the second time. Like last year, the conference will be held in Bangalore, India on the 28th and 29th of May. This year, the conference promises to be bigger and better with speakers like Yehuda Katz, member of the Ruby on Rails core team and jQuery core team, Chad Fowler author of “The Passionate Programmer”(via video), Ola Bini core-committer to JRuby since 2004 slated to speak at the conference, among others. [more inside]
Create your own Rails3 engine
I created a video that you can following the steps to create a rails engine. Part 1: I create the engine. Part 2: I plan on hooking this engine into ror_ecommerce.
Github-style CSS3 buttons gem
I just launched a CSS3 buttons gem which defines some rails helpers methods to make sexy, githubish buttons and links, without faffing about. Includes a simple stylesheet and icons and the helpers are easy on the eyes (and brain). [more inside]
fp-sin, an async sinatra shell to get your started.
I just launched fp-sin an async Sinatra shell with all the goodies. Included is rack-fiber_pool, em-mysql2, em-synchrony, em-http-request, sinatra-activerecord, i18n, less, dalli, and convenient hashing functions for cache keys. Due to the popularity of em-shorty, I figured I would put this together so people could quickly integrate it in their own Sinatra projects. Oh and don’t forget the included console provided by tux.
Slop version 1.5.0
I’ve just released Slop version 1.5. This version adds support for Ranges supporting multiple syntaxes, and the major feature of commands! See an example here. Be sure to check out Slop!
What's so special about Ruby Rails
A friend asked me that very question - so I blogged about it. Please feel free to leave a comment :) What’s so special about Ruby on Rails?
Truncating HTML while Preserving Structure
Couldn’t find anything that allowed me to truncate snippets of HTML, so I wrote my own.