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.
The difference between instance_eval and instanc_exec
Learn how and why instance_eval and instance_exec are different in a walk through of some code from FactoryGirl.
Is BDD for you?
I wrote an article explaining where behavior-driven development came from and what problems it can solve if applied correctly. Hope you find it useful. Read it here.
Improved Ruby Snippets for Sublime Text
The ProductiveSnippetsRuby package adds snippets for common Ruby idioms. It is intended as a replacement for the stock Ruby snippets and avoids gem specific code (e.g. code that is only meant for Rails). You can install it via package control or by cloning the github repo.
How to select database records in an arbitrary order
In Rails, it’s easy to get a bunch of records from your database if you have their IDs. But what if you wanted to get the records back in a specific order? Maybe your search engine returns the most relevant IDs first. How do you keep your records in that order?
Help Us Build Rails Video Tutorials For You
This is an introductory post about a following video series that we’re trying to build. The plan is to record a video tutorial on a small project for capturing form data (as a service). The purpose of this post is to gather some feedback pre-release so we can build a better video series. Share your thoughts!
Hijacking gem built-in commands
I wrote a short explanation on how one can replace the built-in gem commands like install relying solely on Rubygems’s public API.
Awesome Ruby Events (Meetups, Conferences, Camps, etc.)
Hello, I’ve started yet another awesome collection on GitHub. What’s news? The awesome-events repo collects Ruby events (meetups, conferences, camps, etc.) from around the world. I’m from Austria, thus, I’ve started w/ Central Europe. New events, meetup, camps, conferences, and more welcome. Cheers.
therubyracer and libv8 yosemite gem/bundler problems - the simplest fix of all
therubyracer and libv8 yosemite gem/bundler problems - the simplest fix of all on the Reverb.com Product Blog
Rails API Is Going to Be Included in Rails 5
Just mentioned by @dhh at RailsConf, link here.
Git Merge 2015 Reviewed
Hey Ruby folks, here’s a review of the latest Git Merge conference, brought to you by one of Netguru developers. Feel free to jump in and share your thoughts on the topics presented during the event: Git Merge 2015 Reviewed
Tackling Those Tests, Part 2: Getting Fun and Functional With FactoryGirl
The most comprehensive test suite is nothing without the appropriate amount – and type – of test data to support it. The factory_girl gem is one of the most efficient and painless ways of creating test data within a Rails app. This post explains how to effectively make use of FactoryGirl in your application, and which bugs you should avoid along the way.
Locality and Cohesion
I wrote about some ideas from Patterns of Software by Richard Gabriel on my blog. Sometimes we move things into their own methods too soon when tighter locality with the related code helps us see problems.
Build a Ruby Gem is 25% off for RailsConf
In light of RailsConf 2015, Build a Ruby Gem is 25% offRailsConf. Read more
Array is one of the workhorses in Ruby
where would we be without them?
Why not Endless Ruby?
Tools to Test and Optimize Page Load Speed
A list of tools to measure the page load time and its optimization:
Useful Capistrano plugins
Capistrano is a well-known tool for deploying your code. But what fewer people know is that you can also use it for performing additional tasks on your server. -
ArrrrCamp 2015 CFP is Open
Arrrrcamp just opened its cfp, you must submit a talk and come have a good moment there with us.
DIY Instrumentation CPU Profiler
This is the third part of the DIY CPU Profiler blog series from Codemancers, the folks behind Rbkit Ruby profiler. This part is about how to build a very rudimentary Instrumentation profiler for Ruby
New Ruby ETL gem available: Kiba
I just released the first gem version (0.0.5) of Kiba, a declarative row-based processing DSL (first introduced here). It’s now in production use by a couple of people to transform and move data around, hope you’ll like it.
Build an API in your Rails app now!
In this blog post we will see how we can add a low REST API in our app without changing a single line of code! We will also talk about best practices when building APIs.
Gem of Week #16 - tilt gem - let's build (yet another) micro web framework
Hello, over at the Planet Ruby the Gem of the Week series continues with #16 - tilt - that lets you build your own micro web framework in less than 33 lines of code (inspired by Konstantin Haase’s Almost Sinatra hack). Full article. Cheers.
Skins, minimal styles for Rails scaffolds
Skins is a small Rails plugin that adds a thin layer of style to your app. In short, is just a stylesheet and free fonts. No need to change your HTML, nor add extra markup. Check the code on github.
Creating a math intensive C-extension
The COSMOS framework is a general purpose command and control framework written in Ruby and Qt was recently open sourced by Ball Aerospace. This blog post is about modifying our C extension which allows for writing binary data into Ruby string buffers.
SOAP that doesn't leave you feeling dirty.
Working with SOAP APIs isn’t the greatest thing in the world. Savon makes working with SOAP easy, and dare I say not so bad!