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.
From Dropout to Fulltime Rails Blogger
We all know it takes 15 minutes to create a Rails blog, but how do you end up a full time Rails blogger? Ninefold has launched a new blog and it’s all Ruby and Rails all the time. Here is the story of how it all ended up happening.
How To Stub External Services In Tests
Requests to external services during test runs can cause several issues: [more inside]
Using the rails_layout gem with RailsThemes
We highlighted the use of RailsApps’ rails_layout gem with your RailsThemes purchase in our newest blog post.
Did you know they changed #try ?
I wrote a small article describing how #try implementation changed between Rails 3 and Rails 4.
Meta Tags on Rails
I want to share my thoughts on how to implement meta tags on Rails.
Rails meets Docker
So there is this new tool called Docker, and you may have heard great stories about it. But as a web developer using Ruby, you may wonder what this tool changes for you. Skeptical? Please follow this way! Read more
Carrierwave for Rails tableless model
I wanted to share my experience in the application of carrierwave for tableless model
2013 Rails Rumble Gem Teardown
Keeping with tradition, Adam Doppelt of Dwellable just released the 2013 Rails Rumble Gem Teardown.
Better Tests Through Internationalization
Internationalization (i18n) is the process of adapting computer software to different languages. In Rails, this means extracting all strings from you views and controllers and placing them (by default) into YAML files that live in config/locales. So why would you want to bother with this if your site is only available in English? [more inside]
Migrating a project to Ruby 1.9 hash syntax
I’ve just had to update all the hashes in a project to use Ruby 1.9’s new syntax for hashes whose keys are symbols (from :key => 'value' to key: 'value'). [more inside]
Three real world examples of RSpec custom matchers
The Reverb.com team shares Three real world examples of RSpec custom matchers. Are you looking for a senior role in a lean team building a fast growing musician’s marketplace? Rubyists & iOS people, contact us.
Pronto now supports JavaScript! (via JSHint)
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And now it supports JavaScript with the help of jshintrb. Check it out: Pronto and Pronto runner for JSHint.
ActiveRecord's Dirty Little Secret
What ActiveRecord isn’t telling you when you make a query!
Lets Get Small: Why I Dislike the Module Include Pattern
Including modules is a very common pattern in Ruby code. Lets Get Small: Why I Dislike the Module Include Pattern explains why it makes your code harder to understand and suggests using classes as a better alternative.
Multiple Authors for Ruhoh
We just wrote a Ruhoh plugin for managing multiple blog authors: Ruhoh Multiple Authors
How to import millions CSV rows via ActiveRecord in minutes (not hours)?
Rails is know to suffer GC performance issue in importing millions records via AR. Traditionally, people opt to use SQL INSERT(s) however this method does not respect AR validations and callbacks which could lead to poor data integrity. The best way is to use AR but make it run through multiple processes to boost up runtime. Details can be found on http://ruby-journal.com/how-to-import-millions-records-via-activerecord-within-minutes-not-hours/
RVM 2.0 Fundraiser halfway
RVM 2.0 Fundraiser halfway - ask your boss to help us.
Complete ffi ruby bindings for OpenCV 2.4.4 and higher
Unlike other ruby binding projects for the Open Source Computer Vision Library (OpenCV) ropencv is automatically generated by parsing the OpenCV C++ headers having the following advantages:
Building a collection with Enumerable
The Enumerable module in Ruby is very powerful, and Building a collection with Enumerable is a good introduction to start using for your own classes.
Setting Up Rails Engine With Rspec, Guard and Zeus
I love the speed of Zeus when it comes to Rails app testing. But its not straightforward when it comes to Rails Engine land. I’ve just compiled a post on how to set it up to run with Zeus and Guard for testing rails engine specifically.
Sort Like a Human Boss
This article introduces the sort_authority gem, which provides natural order sorting that is significantly faster than similar Ruby libraries.
AWS Elastic Beanstalk
My experience with AWS Elastic Beanstalk for Ruby on Rails.
library wrapper for low level caching in rails
Low level caching in rails is very helpful, it reduce expensive query but it kinda hard to manage in your project. This gem Munna wrap rails cache and add some methods to support caching easily [more inside]
Opal: give it a try
If you are a Ruby developer, you’re probably constantly complaining about Javascript’s quirks :) I wrote an article describing Opal: a Ruby to Javascript compiler