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.
Vim Config for Rails Ninjas
In this post I’m going through my vim config trying to explain as much as I can all the config options that I use. My work is 99% Ruby on Rails and I use vim to do it so expect my config to have a focus on Ruby. Check out my Vim Config for Rails Ninjas
A couple of callback gotchas (and a Rails 5 fix)
Ever saved a record that your jobs couldn’t find? Or had a callback skipped by your test run? In my latest post, you’ll learn easy fixes for both these problems, and how Rails 5 will make one of those problems go away for good.
Programmers need to learn how to benchmark, or I will kill them all
I was reminded of Zed’s rant last week when my painfully intelligent cofounder with a PhD published a very interesting benchmark, that was wrong by a factor of 3. None of the 30,458 programmers who viewed his post have pointed out his mistake, so I thought it’d be worth talking about some common benchmark issues.
It's All In The Rails Family: Using acts_as_tree
Organizational nerds rejoice! This post explores acts_as_tree and will help you organize all the things.
Ruby: Actionable Meta
Execute all things meta.
Urgent: Upgrade to pg v0.18.1 if Using Ruby v2.2 ASAP
Running pg < v0.18 with Ruby v2.2+? There’s a silent incompatibility that can cause random bytes to be added to your strings. Upgrade now or get bit(s)!
Programmer's churn
Framework churn is real. You just need to look at the hot topics on site aggregator to realize how people jump from one framework to another. Read more
Bootstrap your new Rails app in 5 minutes with Railsbricks
I’m very excited to share that Railsbricks helped my team win the PrimaveraPro Startup Hackaton in Barcelona with coverr.me. Here’s a quick setup guide I wrote some time ago, 100% recommended for your next app!
Monetizing open source software with educational materials
The most popular way to monetize open source software is creating and selling educational materials. Here’s why with a few examples
Webinar: Ansible with Ruby on Rails
Want to learn more about using Ansible to manage your Ruby or Rails servers? Sign up for this webinar. Ansible is a server configuration management tool like Chef or Puppet.
Viewmaster - The layout version switcher for Rails.
At http://preyproject.com We just opensourced Viewmaster, gem that helps handling the transition for multiple layouts. The common pattern to minimize the impact on the users when you launch a new version of your app is to allow them to transition back and forth between versions. This gem provides said functionality, allowing you to easily implement the transition between your from current layout to (one or many) new layout versions.
Performance Benchmark On Ruby's Dynamic Method
As a dynamic programming language, ruby parses and compiles your code at runtime. This gives you the ability to call methods dynamically, define methods at runtime or even handle function calls that doesn’t even exist. But how about the performance of these technicals? Here is some benchmarks
Cron for GitHub
Build periodically with Cron for GitHub App
The difference between back-references and global variables in Ruby regexp
Use back-references for processing strings within the gsub method call. Choose global variables when using a block instead of a replacement argument, or if the regexp call is before manipulating with the result. Read more
Use and abuse of Ruby on Rails environments
stop using separate Rails environment to represent server stages like dev.rb, qa.rb production.rb that have exactly the same options. Here’s my explanation:
RSpec matchers for controller action filters
I just published my first gem for testing execution of before/around/after filters with RSpec.
Premium Ruby on Rails Screencasts Launching Soon - 50% lifetime discount
Hey everyone! Some of you may know my other screencast series, MotionInMotion (RubyMotion screencast), which has had great success the past 1.5 years. Time to bring that success to Ruby on Rails! FluffyTuts will be launching late-March with the new series RailsInMotion. To get a 50% lifetime discount head on over to the email launch list: Read more
InfraRuby 3.6 statically typed Ruby compiler released!
InfraRuby is a compiler and runtime for statically typed Ruby.
Track micro-services messages uniformly
Utracker logs the interactions between your micro-services in one place with an uniform format. Check the example and send me back some feedback if your interested. Read more
Gallerist
Gallerist is a web application to browse libraries of Apple’s Photos app. It is built on top of Sinatra. –
Configuration With a Singleton Instance
Maintain a clean configuration for your module and have constants that are truly constant.
Understanding standard streams and redirection
Understanding standard streams and redirection with Ruby.
Rubocop – Your personal code reviewer
Rubocop is a static analysis tool that will help you keep your code void of a number of style and potential error issues. Check out the full blog post: Rubocop – Your personal code reviewer
From Ruby to C#
Wanted to share my thoughts on being a while in C# world as a Rubyist
Rails 4 performance tips
Your application grows and gets slower? In this performance blog post I introduce you to some gems and tips that help you speed up your applications.