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.
Manage DigitalOcean services from your chat room with lita-digitalocean
lita-digitalocean is a new plugin for Lita, the programmable Ruby chat bot, that allows you to control the full DigitalOcean API via chat. Check out the README for the full list of supported commands.
Common mistakes in Ruby on Rails
Few common mistakes that must be avoided while developing Ruby on Rails applications. Please checkout at Ruby on Rails Blog by Allerin.
O'Reilly Programming Blog: Blocks and File.open
This will be the last post in the series for my in-depth look at Ruby blocks: Why Ruby Blocks Exist part III: Never forget to clean up again!. It shows how blocks can ensure you never have to worry about de-allocating resources like network connections and file handles. If you’re new to Ruby and struggling with blocks, this will be a good read for you.
Here is a Thread Pool!
Here’s a great reference implementation of a thread pool in Ruby and its applications.
Refactoring Tips: Don't Trust Your Unit Tests
Before you start making any changes, make sure you have an integration test covering the part of the application you’re changing. While unit tests might be useful on a small scale refactorings, they usually break if you change the layout of your code, even a little bit. This is mostly because a big portion of the unit tests will depend on the exact API of your classes, instead of their behavior. Continue reading<p>
Reading Rails - How Do Batched Queries Work?
Want to learn a little more about how ActiveRecord is implemented? I knew it! [more inside]
6 Upcoming Ruby Events You Can't Miss in 2014
A collection of 6 Upcoming Ruby Events You Can’t Miss in 2014. What would you add to the list?
A Ruby library for Tic-tac-toe
I just release version 1.0.0 of my gem for Tic-tac-toe, called xo. It’s aim is to provide a reusable implementation of Tic-tac-toe game logic. Check it out. I tried my very best to write clear code. So please don’t hesitate to tell me what you think.
Analytics with Redis Part 3
In this episode we show you how to track page views and unique visitors in a Rails application Analytics with Redis part 3.
One month til MagmaConf in Manzanillo MX
Great speaker lineup and three meals a day included with your ticket</a href>. Oh, and the beach is right next door. www.magmaconf.com</a href>
Phusion Passenger 4.0.42 released, Ubuntu 14.04 packages available
This new Phusion Passenger release fixes various bugs and introduces Ubuntu 14.04 APT packages and Nginx 1.6.0 APT packages.
Changing the Rails Console Prompt
The Rails Console is an indispensable tool, providing developers with an easy way to experiment with models, Ruby syntax, and pretty much any other code associated with a Rails project. But the default prompt is a bit overbearing, including by default the Ruby version and number of commands executed in the current session. You can easily simplify the default prompt by following the instructions found in this easy tip.
Create a simple Jekyll-like blog in your Rails app
I wrote an article about creating a simple Jekyll-like blog in your Rails app from my experiences of building my company blog.
Polymorphic associations in Ruby on Rails
We have recently been working with a project where Polymorphic Associations have been used extensively. Here we’ll give an example of how they can be used.
Easy, Fast, Powerful: This is Your Rails on Ninefold (Review)
Recently, I spent some time checking out Ninefold, a Rails hosting platform that’s aiming to combine the ease and low barrier-to-entry of Heroku with the configurability and power of AWS. Over a couple of days, I branched a simple in-house app and pushed it to Ninefold. I’ve distilled my first impressions down to a few points that I hope are useful the next time you’re looking for a Rails host. Read more: http://blog.palominolabs.com/2014/05/05/ninefold/
Untangle spaghetti code with a simple change of perspective
That giant mess of if statements keeps staring you in the face. You feel like you should be able to simplify it, except for that Business Logic that keeps getting in the way. For example, say you have a sales platform where you build Quotes, which have many LineItems. Except, you can have a quote with duplicate line items if they’re ads, but if you have multiple websites, you have to sum the prices together and have it show up as a single line item. Oh and also, if you buy a website and already have five ads in your quote, you have to give them a 20% discount on the website. [more inside]
Barcelona Ruby Conference's last ticket batch is open
One of the most interesting Ruby conferences in Europe, taking place on the 11th to the 13th of September this year, just opened their last ticket batch.
JRubyConf EU returns in 2014: Call for Proposals (CFP) now open
The third iteration of the European Edition of JRubyConf will take place on 1 August, again as part of eurucamp. The Call for Papers is now open at cfp.jrubyconf.eu. [more inside]
Upgrading from Rails 4.0 to rails 4.1 - My experience
Recently I have upgraded one of my app from rails 4.0 to rails 4.1 and collected some notable changes which are required for upgrade. Here is My experience.
Caching with Rails
I published the second part of an article about Rails caching Rails Caching .
A revised version of Uncle Bob's "Professionalism and TDD" article
Since RailsConf, tensions have been running high among prominent community leaders surrounding the issue of test-driven development. This is unfortunate, because it means that otherwise valuable ideas are being obscured by the way they’re being presented. [more inside]
Lesson Learned from the Code Ping Pong with DHH
Here’s a sum up of the Code Ping Pong game with DHH (it’s really great that he has agreed to take part and support RoR community).