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.
Is your app deRailing?
An introductory article on Trailblazer, its benefits, how it can help to better organize bigger apps, with some code samples and everything. Read more
Lexical scoping and Ruby class variables
In this post we’ll discuss some non-obvious behavior of class variables and show how it’s all the fault of lexical scoping. http://blog.honeybadger.io/lexical-scoping-and-ruby-class-variables/
Free SSL with CloudFlare and Heroku
It’s easy to https your Heroku site without actually buying a SSL certificate. Just use Cloudflare’s Universal SSL and you are done! Follow the steps in this blog post.
Effective TDD With Ruby: Tmux Setup
Last article of this series where you’ll learn how to build an UNIX IDE for highly productive coding sessions. Read more
Peeking Under The Hood of ActionController Parameters, Part 1
Strong parameters are a daily staple in any Rubyist or Rails developer’s workflow. But how do they actually work? And why do we use methods like require and permit? What do they do, exactly? This blog post tries to answer these questions by taking a peek under the hood.
Five Active Record Features You Should Be Using
Active Record is responsible for communicating with the persistence layer by default in Ruby on Rails applications. Using Active Record effectively and efficiently can greatly improve an application’s code.
Adding tags to ActiveRecord models
Where we see how to add tags to the Article models of a blog application written in Ruby on Rails. The user should be able to enter a list of words separated by comma; the app should then create tags from the words entered if they don’t exist, and link them to the article.
Scrivito: A professional Cloud CMS built for Ruby on Rails
Most Rails developers are struggling to find a Rails-based CMS with the feature set of PHP options like WordPress or Drupal. That’s why we’ve built Scrivito. Our SDK, delivered as a Gem, integrates with any Rails app within 10 minutes. So you can easily enhance your existing Rails app with WYSIWYG content editing capabilities and much more. Try a free 30-day free trial on https://scrivito.com.
The Grape Swagger Stack
How to build clean and lightweight microservices complete of UI and documentation in Ruby with Grape and Swagger:
Pakyow v0.10 Release
We just pushed out a bit update to Pakyow, a realtime web framework for Ruby. This release introduces WebSockets, channels, reactive views, and a some other goodies. Read the announcement
Pronto v0.5.0
Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And v0.5.0 is the best version of Pronto yet. It includes bug fixes and features requested and created by the community. If you haven’t had a chance to check Pronto out in the past, there’s no better time than now!
Quick, no-hack emoji support with MySQL & Rails
Don’t want to suffer the huge migration from utf8 to utf8mb4 to get emoji support? Rails has a built in way to help with that:
What To Do When You're Stuck In Ruby
There are lots of tools to help you debug your Ruby code, but it’s not always obvious which ones are right for the job. Especially when you have to dig into somebody else’s code. So before you head over to Stack Overflow out of desperation, let’s see if we can figure out this problem ourselves.
How to stay up to date on security alerts
One of the common reason for compromise when security breaches occur is software patches not being applied. For Ruby & Rails developers it’s important to stay up to date on security alerts, and I’ve put together a short post on how to do that.
Introducing DRG CMS
New opensource CMS and rapid web application development tool DRG CMS uses Ruby on Rails and MongoDB in unique way to provide super fast web development. Read introduction and try to make your own web site in 15 minutes
Greenjaguar
Applies retry behavior to arbitrary code blocks with different policies like fibonacci, exponential backoff, FixedInterval, etc. This basically is the ‘retry’ construct on steroids. Read more
Creating a Rails 5 Project
Set up the bleeding edge Rails by reading the Setting up a Rails 5 project article.
Introducing FiveStar - A Ruby generic rating library
FiveStar is a library to build a rating system - it allows you to rate something in your domain by various classification or criteria you define. Read more
Benchmarking Ruby 2.3 string literals + new Ruby features
Ruby 2.3.0 brings few new features to the table. In this post, apart from listing all of them I also decided to benchmark new frozen string literals feature. The difference in performance can be astonishing! http://dev.mensfeld.pl/2015/11/ruby-2-3-0-changes-and-features/
Investigating Kafka as an Event Store
In this post we explore using Kafka as an Event Store. Kafka is “publish-subscribe messaging rethought as a distributed commit log”. Includes Ruby code examples.
Enumerable - How I Fell in Love with Ruby
Slides for a recent talk I gave demonstrating some useful features of Enumerable and Enumerator through lots of examples.
Implement a Lazy Hash in Ruby
Create a Hash that self propagates when you access keys that don’t exist yet. I give a few demonstrations of smarter Hashes that work with invalid, or partial, key entry.
New features in ruby 2.3
Learn about hash and array dig methods, inverse grep, hash comparisons, and more new features in ruby 2.3.
Rails Rumble - the Experience
This is my personal experience in competing in Rails Rumble twice with teams of people I’ve never worked with before.
ReverseMarkdown 1.0.0
reverse markdown transmogrifies given HTML into markdown for storing or further processing. The library just hit 1.0.0 with major speed improvements, but also some breaking changes, so please update with care! For details look at the changelog.