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.
Using GraphQL, a Ruby on Rails introduction
A quick introduction to using GraphQL with Ruby on Rails! [more inside]
How to add a uniqueness DB constraint for multi tables?
A short post to share how to add uniqueness DB constraint when models are on different tables: http://marouenbousnina.com/add-unique-constraint-for-multi-table/
Beautiful, interactive charts and tables for Ruby on Rails https://reportskit.co
ReportsKit lets you easily create beautiful, interactive charts and tables. [more inside]
Ruby on Rails - test easily your sign in with social network feature
Option to sign in or sign up with Facebook, Twitter or any social network is a nice feature in every app. It’s obvious how to test such feature in unit tests but things become harder to test if we want to write acceptance tests. READ MORE
Building custom search is hard and boring
A few thoughts about building search functional again and again and again. Also to be continued :) https://blog.arkency.com/building-custom-search-is-hard-and-boring/
Cleaning up: Rails 5.2 ActiveRecord::Dirty API changes
If you’re planning a Rails 5.2 upgrade, check out some of the changes to the AR::Dirty module: https://www.ombulabs.com/blog/rails/upgrades/active-record-5-1-api-changes.html
Ruby's New JIT
Ruby is about to get way faster. Check out Ruby’s new JIT.
DHH Speaking
screencast from DHH https://www.youtube.com/watch?v=m1jOWu7woKM&t=4s
7 Ways Continuous Delivery Helps Build a Culture of Learning
At the heart of continuous delivery is a fast feedback loop that shows us the effects of our work. It can help build an organizational culture of learning and responsibility — if we approach it the right way.
How Are Symbols And Strings Different?
Learn about the difference between symbols & strings! Including some advanced stuff about symbol GC. http://www.rubyguides.com/2018/02/ruby-symbols/
learn Ruby, Sinatra, Rails and friends quickly
here you go, ambitious Ruby programmer… [more inside]
MySQL JSON Support for Rails 4
Projects currently working with Rails 4 aren't able to natively work with MySQL 5.7's JSON. The gem JSON on Rails adds native Rails support for it, opening up interesting use cases. [more inside]
Humming along - Analyzing RubyGems stats for 2017
What was 2017 like for the Ruby ecosystem? What gems are growing in popularity and which are declining? Analyzing RubyGems stats for 2017
Learn how to rescue from errors in a Ruby on Rails controller
Sometimes you have to rescue from errors in your Ruby on Rails controller. You mostly would need to rescue from ActiveRecord::RecordNotFound exception raised when you did a query but your record was not present in the database. But what is the best way to rescue from errors? READ MORE
Slacking off with Slack bots, creating your first Slack bot in Ruby
Learn how to create your very own Slack bot! [more inside]
Syntax highlighting and Emmet support in new APIQ CMS release
Check an overview of what’s added and changed in this article.
Using ActiveSupport to deprecate gems code
Are you searching for an easy way to deprecate gems code without breaking existing user apps? Here’s a small guide on how to use ActiveSupport to deprecate code in Ruby.
Deploying Faktory to AWS Fargate
Faktory, created by Sidekiq’s Mike Perham, is a self-contained, language-agnostic approach to running background jobs. Learn how to setup Faktory for a Rails app on AWS Fargate in this tutorial.
RSpec - 4 common tests design mistakes. Do you also make them?
Learn how to write good tests and avoid 4 common tests design mistakes that slow down your specs and make them less readable. READ MORE
Guide to setup testing React.js components with Jest in Rails+Webpacker+Webpack envir
Are you using React with Rails? Maybe integrated with Webpack thanks to Webpacker? Have you always wanted to test those components but configuring tests in JS seems hard? Here is a guide on how to start because there are dragons 🐉🐉 on the road and it took me some hours to figure it out from a few other tutorials. [more inside]
Goodbye Sprockets. Welcome Webpacker 3.0
This guide will let you through the process of migrating your Rails Application from Sprockets to Webpacker 3.0. Even though Webpacker suggests to keep using Sprockets for css and images, I don’t really see why we should keep two bundlers at the same time when we can simply use only Webpacker. [more inside]
RSpec matchers for increment and decrement
Here’s something a little more expressive than using “change { blah }.by(1)” - some RSpec matchers for increment and decrement.