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.
Functions To Call Upon: ActiveRecord Association Callbacks
We know and love ActiveRecord’s callbacks. But do we really know all about them? This blog post uncovers Rails’ best-kept secret: association callbacks, aka your new best friend for all those has_many relationships!
5 practical Ruby on Rails projects
There a 5 possible ways to create value when hired as a Rails developer. Let’s look at each and possible gems you could use to speed up your development process.
Ruby Version Usage in Commercial Projects, 2015 Edition
We just published charts and insights into which Ruby versions are used in the industry today, sourced from Semaphore CI.
A powerful way to deploy to Heroku
In this blog post I describe how I built a custom deployment system, which uses Hubot, Jenkins and other means to provide fast, stable, predictable, and very customizable deploys: Read more
Rails 5 Basics : Update Article
Read the sixth chapter from Rails 5 Quickly book online here Update Article
Validates Type 2.0
validates_type is a gem for validating that a specific value is exactly the type it is expected to be. In a recent update, the validates_type gem has been extended to validate against any defined type in a system. With this update, the uses of this gem greatly increased. They increased so much that it is possible more than 2 people will use it, and that would be pretty awesome.
SemVer for Library Maintainers
Do you have a rubygem? Ever wonder what your next released version should be? Find out by reading SemVer for LIbrary Maintainers
Watch Ruby as it parses your code
In this post we’ll use a little-known command line flag to spy on Ruby as it parses our code. - http://blog.honeybadger.io/watch-ruby-as-it-parses-your-code/
Rails 5: awesome features and breaking changes
Keynote of RailsClub 2015 (Moscow, Russia) that covers the improvements brought by Rails 5, explains the Core team’s motivations behind each feature, and illustrates the upgrade process to smoothly transition gems and apps from Rails 4.2 to Rails 5.0. Read more
Benchmarking a Go AI in Ruby: CRuby vs. Rubinius vs. JRuby vs. Truffle/Graal
I wrote an AI for the board game Go called rubykon, I ran my benchmarks with major ruby implementations to see who’s the fastest and wrote it up in a post. If you are interested about Go AIs in general and why they still can’t beat humans have a look at my talk “Beating Go Thanks to the Power of Randomness” from Rubyconf 2015
Code Ruby like you build Lego
Split your app based on business logic bricks and assemble them
From Jbuilder to AMS, with tests
This article explores how you might test your JSON API endpoints, specifically around making the change from Jbuilder to AMS.
An Interview with Jose Valim
Nihal Sahu sits down with well-known Rubyist and creator of the Elixir language, Jose Valim. Read An Interview with Jose Valim
Rails 5 Basics : View to Model
Read the fifth chapter from Rails 5 Quickly book online here View to Model
Powerful table filters in Rails DB
https://www.youtube.com/watch?v=dfViQPZw9zE - see quick demo to see example of using powerful filters in Rails DB. Multiple conditions, sorting added. Read more
TheMask v0.2.2: Data mining gem
If you’re performing a lot of data mining or data extraction, this is the gem you should be checking out:
Rails 5 Basics : Model View Controller
Read the fourth chapter from Rails 5 Quickly book online here Model View Controller
tty-cursor v0.1.0 first release
The purpose of tty-cursor library is to help move terminal cursor around using intuitive commands. It also allows to clear text in relation to the current cursor position. This is a independent component in tty ecosystem. Enjoy!
Boost your content focussed site with Structured Page Fragments
A tutorial outlining how to integrate Rails with SPF.js, A lightweight JS framework for fast navigation and page updates from YouTube. Read more
Rolling back complex rails apps
Rolling back complex rails apps might scare you and be a problematic procedure. But there are steps you can take to make it easier and less error prone. Be safe when something goes wrong.
Rails 5 Basics : Model
Read the third chapter from Rails 5 Quickly book online here Model
Iterative Evaluation
Here I demonstrate how iteration works in Ruby and delve into lazy evaluation and some functional and OO methodologies. Iterative Evaluation
aruba 0.11.1 released
We are pleased to announce “aruba” version 0.11.1. aruba is a gem to test command-line applications with Cucumber-Ruby, RSpec or Minitest Read more
Rails 5 Basics : Hello Rails
Read the second chapter from Rails 5 Quickly book online here Hello Rails
Shrine 1.0.0 released
A month ago I released Shrine, a new solution for file uploads in Ruby, and now it has reached 1.0.0. There are a lot of new features, improvements and fixes, take a look at the release notes.