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.
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. [more inside]
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
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. [more inside]
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: http://teotti.com/use-of-rails-environments/
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: http://launch.fluffytuts.com/ [more inside]
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. [more inside]
Gallerist
Gallerist is a web application to browse libraries of Apple’s Photos app. It is built on top of Sinatra. – https://github.com/koraktor/gallerist
Configuration With a Singleton Instance
Maintain a clean configuration for your module and have constants that are truly constant. http://6ftdan.com/allyourdev/2015/03/07/configuration-with-a-singleton-instance/
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 http://codingwithaxe.com/from-ruby-to-c/
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.
search_cop v1.0.6 is out
This is a bug fix release. It fixes a PostgreSQL date out of range exception. Check out search_cop to get search engine like fulltext query support for ActiveRecord.
Shopify Rate Limits with Ruby and Sidekiq
Learn how to deal with shopify’s rate limits in a multithreaded environment - Shopify Rate Limits, Sidekiq, and You
Running a Rails app on Docker using the Passenger image
Setting up a Rails development environment using Docker Compose, boot2docker and the Passenger image.
Algorithms Every Programmer Should Know: Reservoir Sampling
I wrote and annotated a small RubyGem to explain the math behind reservoir sampling. [more inside]