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.
Uniqueness validations with ActiveModel
A small note on using uniqueness validations in ActiveModel classes.
Realtime with React and Rails
To showcase using ActionCable in a Rails app with React, let’s explore how to use Rails, React, MobX, and websockets in a realtime location app.
The battle for auditing and versioning in Rails — Audited vs Paper Trail
This blog post is about the comparison of two popular gems of auditing and versioning in Rails. I have identified three fundamental questions that allow me to analyze the capacities of Audited and Paper Trail solving them.
Introducing JS-Try - A try method for safe navigation in JS inspired by Rails
JS-Try is a Javascript implementation of the try method from Rails for safe navigation.
How I made first API Documentation gem
Hi, guys! This is my post, about “How I made first API Documentation gem for Hanami”. Here is.
4 ways to store API keys in your Rails apps
Check out how to safely store API keys in your Rails apps and what are their pros and cons.
RubyMine 2017.2 Released
RubyMine 2017.2 is released! This major update features support for Docker Compose, in-editor RuboCop quick-fixes, new features in Git log, and improved JS support. Learn more and download RubyMine 2017.2 from the What’s new page.
RenderReact
I have node based JavaScript tooling, but wanted a way to render my React components from Ruby, with the option to pre-render React components on the server. This led to
5 Benefits of Immutable Objects Worth Considering for Your Next Project
5 Benefits of Immutable Objects Worth Considering for Your Next Project As a ruby developer, immutability is thrown around by functional programming aficionados for awhile. as a skeptic I've passed it off as a buzzword and kept moving along. I recently started learning elixir and it popped up again, so I wanted to get a deep understanding of what the concept is and how it benefits our software in the real-world...
New Random Ruby Newsletter Issue
26th issue of Random Ruby email newsletter. Several interesting articles and tools from Ruby world inside:
[Screencast] Creating Custom Ruby on Rails Generators
Simplify your workflow by using custom generators to streamline the creation of files and templates that you use often.
SEO Tools For Your APIQ CMS Website
Check out how to setup SEO tools for APIQ CMS based website.
Super Secret Methods
It is possible to define and call secret methods, that are impossible to access via normal Ruby syntax.
Nim for the discerning Rubyist
Nim is a flexible, fast and concise language that can be used alongside Ruby to provide integrated solutions to a wide-range of problems. In this post I demonstrate how we can delegate tasks that require high-performance or parallelisation from Ruby to Nim, with ease.
What Is A Complete Feature: A Developer's Perspective
As a developer, what does a complete feature mean? Read on for the different levels of completeness, what they mean for you and your dev team. Read more
Implementing inheritance with params: CreateProducts < ActiveRecord::Migration[5.0]
In Rails 5 each migration class is inherited from ActiveRecord::Migration[5.0].
In this article I’ll describe why we need it and how to implement inheritance with params.
Machine Learning: Support Vector Machine with Ruby
New tutorial on SVM landed on our Ruby Machine Learning list. Read that and other tutorials: https://github.com/arbox/machine-learning-with-ruby#sparkles-tutorials Read more
Integration Overcommit with static analysis tools
Using Git hooks to control code quality for Ruby, Rails and Chef
GEM rabitmq-spec: document and automate your RabitMQ setup
Configure RabbitMQ using this gem: . Create specification files documenting your exchanges, queues and bindings so that you can evaluate them and automatically configure your RabbitMQ instance.
tty-pager v0.8.0
Newest tty-pager fixes support on Windows and allows to enforce pager command. Give it a try!
Lessons learned from first attempt of dockerizing Ruby on Rails app
Check what I’ve learned when was trying to build a Docker image:
Implementing Layered Architecture With Dependency Inversion Principle
Implementing Hexagonal architecture following Dependency Inversion Principle.
My sins against Webpacker/Yarn and compiled Rails assets
The what and why behind checking yarn ‘packages’ and compiled assets into git Read more
Virus Scanning Rails Carrierwave Uploads
Carrierwave::AttachmentScanner is a new gem to send Carrierwave uploads to the AttachmentScanner service to scan them for viruses or malware before accepting the uploaded file.