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.
Ruby Enumerables: Hashes
I just write a new post that introduces Ruby Hashes. Read it on DevInterface Blog.
Git Deployment for the unpriviledged
I finished this blog post yesterday to combine Gitolite with some nice Ruby/UNIX Sockets code to make deployments without privileges or shell access
RVM and Passenger setup for Rails 2 and Rails 3 apps
Guides on how to setup RVM and Phusion Passenger with Apache on Ubuntu to deploy Rails 2 and Rails 3 applications on the same machine.
Rubikon 0.6.0 released
I’ve just released version 0.6.0 of my console application framework Rubikon. It features a nicer DSL for arguments (including validation), saving of config files, help screens for individual commands, better argument parsing and more: Rubikon’s home and source code.
Sharding with DataMapper
I recently wrote an article about Sharding with DataMapper and Ruby on Rails 3.
Track watchers on GitHub
A quick way to view a list of projects, watchers, and forks for any GitHub user: vain
A Look Into The Capybara Gem
Here’s an overview of the Capybara code.
Beware of Ruby Sugar
Yesterday, I blogged about iterating through time with Rails; unfortunately at first I missed a terrible inefficiency in the code, which I explain in my next post, Beware of Ruby Sugar.
RoR ecommerce is now 0.4.0
RoR ecommerce now allows customers to pay with store credit and process returns by giving store credit. Check out the git account.
Setting up and Testing Devise - Delicious Clone
This video is the second installment in the Delicious Clone series on Teach Me To Code. [more inside]
Iterating Through Time With Rails
Cool tip I learned from @rjspotter: Iterating Through Time With Rails.
Migrate Custom Blog to Jekyll and Disqus
I have rewrited my custom blog, using jekyll and disqus, so the first new blog post introduce how to use jekyll and some extensions/plugins, and alos two scripts to migrate old posts to jekyll and migrate old comments to disqus
The Strange Ruby Splat
Is your code too readable? Do your co-workers complain that it always makes sense? The check out ruby’s splat operator. Actually it’s pretty neat, I cover some useful and some questionable uses for it.
Loading Path Gotchas in Rails 3
The algorithm of load path inferring in Rails 3 is a bit weird when class caching is turned off. Here is one gotchas .
delayed_job_admin: a simple admin interface for Delayed::Job
I just published my first Rails 3 gem engine: delayed_job_admin. It’s a simple admin interface for Delayed::Job. José Valim’s enginex made it a breeze. I gather that Piotr Sarnacki pulled the functionality into the in-progress Rails 3.1, so making engines like this is going to be a no-brainer very soon. Give it a try - it’s easier to create a well-tested gem engine than you might think!
Google URL Shortener
Following the recent release of the googl URL shortening API, we created a gem to make working with the service a little easier. Our blog post shows how we use the CLI in our daily workflow and how to get up and running. Check out the intro blog post here.
Pro tip: Increase webpage performance using sprite, data-uri and jammit
JoshSoftware, a Rails company based in Pune India, discusses how to improve frontend performance by getting your pages to load faster using techniques like sprites, data-uri and jammit in the blog post titled “Increase webpage performance using sprite, data-uri and jammit.”
Tweet from the cosnole
A simple gem to tweet from the console.
mongoid-eager-loading 0.3.0 released
I just released mongoid-eager-loading 0.3.0, I fixed a big issue and made it work well with latest mongoid, it gives a great performance improvement for queries with association.
Creating Your Own Auto-Updating Twitter Widget
I just wrote about Creating Your Own Twitter Widget with Rails
Padrino Ruby Web Framework 0.9.20 Released!
Padrino is a ruby web framework built as a full-stack extension to the very awesome Sinatra. The latest version released contains a lot of bug fixes and full support for Sinatra 1.1.X and 1.2a. Check out the latest changes in this release in the blog post.
Reactive Resource: ActiveRecord-style ActiveResource associations
Reactive Resource 0.5 has been released, which brings ActiveRecord-style ‘has_many’, ‘has_one’, and ‘belongs_to’ associations to ActiveResource models, provides better support for singleton resources, and fixes other miscellaneous problems I’ve run into while wrapping REST APIs.
RubyQuestions
I just launched RubyQuestions, a place to get help with ruby, ruby libraries, and Ruby on Rails. Currently it doesn’t have any questions, so start asking away :).
Rails 3 Remote Links and Forms Part 2: Data-type (with jQuery)
I got a lot of great feedback from my original post, Rails 3 Remote Links and Forms: A Definitive Guide. One question kept coming up: How do we make rails remote links work with js.erb? [more inside]
Another take on learning Ruby and Rails
Since the topic of how to learn Ruby and Rails has been a hot one of late, and I’d been thinking about it myself for awhile, I thought I’d throw my two cents on getting started with Ruby (and Rails) into the mix. Comments and suggestions are much appreciated; I’m using this to help future new employees get up to speed.