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.
Getting efficient when working with Heroku
Heroku provides a great infrastructure, but using their Gem often feels a little bit clunky. Especially when viewing the Heroku logs or getting into the console typing out all of the commands is time consuming. Read more
Getting started with Ruby on Rails 3.2 and MiniTest - a Tutorial
Learn how to use MiniTest in Rails from the ground up.
Querying PostgreSQL datatypes in ActiveRecord with postgres_ext
I just posted an article about using Arel and Postgres_ext/Rails 4.0 to run some advanced PostgresSQL queries with ActiveRecord.
Rails 4 in a MindNode
Rails 4 in a MindNode
Compile Vim With Ruby & Python Support on OS X
Learn how to Compile Vim With Ruby & Python Support on OS X, if you are using the terminal Vim.
How to pick the right ruby gem
Ever wonder how or when to pick a Ruby gem? We’ve answered that question for you here.
Mining Twitter Data with Ruby - Visualizing User Mentions
In this post, we’ll show relationships between users based on mentions inside the tweet. After we collected the “who mentions who”, we then construct a directed graph to represent these relationships and convert them to an image so we can actually see it.
Announcing mails_viewer - easiest way to test mails in Rails app
I just release mails_viewer, is a Rails engine to let you easily view and send mails in non-production environment. Checkout on github.
No More Requires: Autoload Classes
Tired of manually adding requires to the top of your files? Autoload your Ruby classes. This post is similar to how Rails does it, but doesn’t use Rails or ActiveRecord directly.
I just released a screencast on how to c...
I just released a screencast on how to create a Turing Complete programming language in 40 minutes and 70 lines of Ruby code. Blog and Screencast
Yell 1.0.0 is out
Yell - Your Extensible Logging Library has officially hit verion 1.0.0 and you will not want to turn back ;-) Yell features highly customizable log formats (with a no-sweat setup), thread safety, multiple adapters, easy setup from YAML and a nice extendable DSL. Browse the source or have a look at the wiki for further information. Read more
AdhearsionConf 2012 @ AT&T Foundry in Palo Alto, CA
The third AdhearsionConf will be held in Palo Alto at the stylish digs of the AT&T Foundry on the weekend of October 20-21, 2012. For the first time we are also offering a full day of hands-on training the day before the conference, led by the Adhearsion core team. Last year’s content may be found here.
Passenger vs. Unicorn
TL;DR - Use Unicorn unless you need to run multiple applications on the same host, such as testing environments or shared CMS instances. Unicorn and Passenger fundamentally differ in how they operate. There are a few similarities, however. Both have a master process that can spawn workers; both fork off workers from the master process; and both run Rack-based applications in addition to supporting older rails versions. What follows is a summary of the way the two application servers work, their benefits and problems. Read the whole article here.
Large Images in Rails
Some notes about working with large images in a Rails app.
Rails 4.0 now supports PostgreSQL arrays
I just blog about my recently accepted pull request that adds support for PostgreSQL arrays in Rails 4.0
Case statements in SQL
Harness the power of sql case statements -
How Ruby Borrowed a Decades Old Idea From Lisp
I just posted another - the last - free excerpt from “Ruby Under a Microscope:” How Ruby Borrowed a Decades Old Idea From Lisp. I’m planning to finish up the eBook before RubyConf starts on November 1st.
How You Can Extend RSpec And Use Cucumber "Given, When, Then" In Your Test Examples!
Do you know that RSpec can be extended with your own methods? Do you know that you can use Cucumbers “Given, When, Then” in Rspec? No? Then you should read How RSpec Can Be Extended and see for yourself!
Cryptic Dollar Variables & Their Meanings in Ruby
Over the weekend I came across a piece of code that had a $. variable in it. I was intruiged and spent an enjoyable hour playing with global variables. Ruby has quite a few cryptic dollar variables and I’ve written about them and attempted to demonstrate using many of them in Cryptic Dollar Variables & Their Meanings in Ruby
"Modding out" in Ruby
I just finished a technical blog post for “modding out” in Ruby:
Why rubyists ignore concurrency?
A discussion about why the ruby community at large go through great lengths to ignore concurrency.
Replacing rvm with rbenv using homebrew
Got rid of RVM with RBENV RVM with RBENV.
Sportbook - Open Source Football Betting Pool Ready for Champions League 2012/13 (in Rails 3.2+)
I’ve reconfigured the Sportbook app with new game fixtures for more fun for the upcoming Champions League 2012/13. You’re welcome to add your own game fixtures. More example events include Austrian Bundesliga 2012/13, México Primera División Apertura 2012, and others. More info. Cheers.
redgreen minitest output = minitest-reporters gem + choose DefaultReporter
Have fun with redgreen minitest!