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.
Introduction to Writing Acceptance Tests with Cucumber
Improve your testing skills with acceptance testing. Cucumber makes you a better developer by helping you see your code through the eyes of the user.
Playing with Phoenix Framework – Rails’ younger brother
Elixir Phoenix Framework for Rails developers.
Object Oriented Design Basics : Flexible Design
Software does not exist in a vacuum. It interacts with environment and the environment interacts with it. The environment is market forces, users, external systems, operating systems, competing software, changes in law etc. It evolves, either it improves or decays over time. The only thing that is constant is change demanded by the environment. To read more, check out the Flexible Design article.
PR Log: Turn Pull Requests into Changelog Entries
tf/pr_log (MIT license) is a small command line tool which fetches recent pull requests from a GitHub repository and inserts changelog items. It encourages handcrafted changelogs and plays nicely with existing changelog content. It uses GitHub milestones and labels to filter items and insert custom prefixes like “Bug fix”. In most cases it can parse its configuration automatically from the project’s gemspec. Read more
How to restore support for Nginx’s gzip_static in Rails 4.2
Nginx has the ability to serve static .gz files instead of compressing assets on the fly, which is great for performance. The Rails asset pipeline has supported this feature in the past, but unfortunately, this support is currently missing in Rails 4.2 and Sprockets 3. The Rails team is aware of the problem and has promised a fix, but in the meantime, here’s a workaround to restore this great feature.
How to clear all Sidekiq queues, using the power of emoji
It’s easy to find code snippets that will delete the jobs from one Sidekiq queue. But we have lots of queues. I want to clear the jobs from all of them. After a little digging, I came up with an emoji-based approach that seems to work well. http://blog.honeybadger.io/how-to-clear-all-sidekiq-queues-using-the-power-of-emoji/
Ruby geoprocessing with GRASS GIS
Ruby can be a nice language to drive the powerful GRASS GIS. Please visit for more information.
I Love Ruby 2016 beta rolling out
Hello people, I love Ruby 2016 Beta edition is rolling out. Grab it here
Clipping Images for Rails: Using Paperclip
Implementing file uploading can be one of the most fun parts of writing a Rails application. But it can also be a bit confusing if you’ve never done it before. This blog post looks at the paperclip gem, and how to both implement it and understand what it’s doing behind the scenes.
An alternative to rails STI, that requires no schema changes
Single table inheritance has a number of tricks and gotchas, it also requires developers to unnecessarily persist code details (such as class name) in the database. We wrote a simple model concern to help alleviate some of these issues. Check our our post!
Ode to Sequel
Relatively recently I switched from ActiveRecord to Sequel, and was completely blown away by all of the features Sequel offers, so I wanted to share it with you.
Setup server and deploy the Rails application
Hello, I finished four articles about “Setup server and deploy the Rails application”. I’d like to share you guys. The articles will focus: Read more
New Jekyll F.A.Q.s - Frequently Asked Questions (and Answers) @ Planet Jekyll
Hello, I’ve started a new F.A.Q for all things Jekyll and friends. Still early. Questions so far include: Where can I find the latest (and greatest) Jekyll news and goodies? Where can I find themes? Can I use Bootstrap with Jekyll? Where can I find help? Where can I find Jekyll friends? What Jekyll plugins can I use on GitHub Pages? and some more Question? Comments? Welcome. Cheers.
jQuery UI Autocomplete with Ruby on Rails
Step by step tutorial how to use the jQuery UI Autocomplete plugin on a Rails project. It includes using the jquery-ui-rails plugin, and styling the autocomplete with images and formatted titles. Check it out here.
GitCompound -- yet another dependency manager
GitCompound is a dependency manager that combines features of Bundler and Git submodules. This is particularly useful when dependencies also need to be developed continuously. GitCompound is decentralized, Git-based and flexible dependency manager.
Use any C library from Ruby via Fiddle – the Ruby standard library’s best kept secret
Fiddle is a little-known module that was added to Ruby’s standard library in 1.9.x. It allow you to interact directly with C libraries from Ruby. In this post we’ll start with some simple examples and finish by using termios to talk to an arduino over a serial port. - http://blog.honeybadger.io/use-any-c-library-from-ruby-via-fiddle-the-ruby-standard-librarys-best-kept-secret/
Optimizing Redis Usage for Caching
If you’re convinced that Redis is the right tool for caching then here are some essential usage optimizations:
Upgrading to Active Admin 1.0.0.pre1
A quick look at the things I had to do to get our app ready for the coming 1.0.
FlexMock is alive !
You’ve liked flexmock, but saw bugs creep in since Jim Weirich’s passing. I’ve started to fix the obvious (minitest v5 compatibility I’m looking at you) and want to make flexmock alive again
Create Multilingual Rails App with Different domains for each Lingual
Want a switching menu on your multilingual app? Get step by step tips on how to create a multilingual rails app with each lingual having it’s own domain.
Three Options for Top-Down Rails Testing
A lot of Rails developers have a hard time explaining the differences between various types of tests that exercise the application’s upper tiers - not just newbies, but even experienced programmers. With the changes coming to the framework, it’s time you knew controller tests from an integration test from an acceptance test.
Automatically add characters count down under form fields
If you need to add characters count down to your form fields I created a gem that adds them automatically when you set up maximum length validations in your model. Read more
A Rusting Rubyist IV
Rust Structs and Arrays in Ruby
RubyIssue(s)
A curated list of ruby related issues collected from GitHub. Bi-monthly email delivery. The ambition is to provide an entry point to the open source space for developers of all levels and from various backgrounds.
Sending Transactional Emails From Rails
Don’t take transactional emails for granted, because they’re fundamental for communicating and doing business online. Find out how to send transactional emails from Rails the right way.