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.
kramdown 2.0.0 released
I just released kramdown version 2.0.0, see for details. Most notable changes: Ruby 2.3 required and several extension were extracted.
What's new in Ruby 2.6
A quick summary of the new features in Ruby 2.6:
Adopting GraphQL and Transitioning to Domain-Driven Services
An overview of how Handshake is adopting GraphQL while breaking apart its Rails monolith to a set of smaller applications focused on serving specific user types.
Video Tutorial: Unpacking a Vue.js and Rails app
What does it take to put together a modern single-page web app using Vue.js on the frontend and Rails as the backend API? The Pragmatic Studio unpacks the design, architecture, and implementation of a full-stack application so you understand how everything works together. No need to get bogged down in figuring out how to put all the pieces together yourself.
Easy Local SSL for Rails Development
There are plenty of options out there for a more robust solution for local SSL testing and development, but this has served me well for a quick way to get SSL requests routed back to my app.
Ruby Quiz - Challenge #11 - Blockchain Contracts - Disassemble Ethereum Bytecodes
It’s Friday. Ruby Quiz time! Join us. Let’s keep going with a new Ruby Quiz every fortnight. Ruby Quiz - Challenge #11 - Blockchain Contracts - Disassemble & Assemble Ethereum Virtual Machine (EVM) Opcodes / Bytecodes. Send your code snippets (or questions & comments) to ruby-talk. Happy opscode hacking and blockchain contract bytecode assembling & disassembling with ruby.
Dynamic ActiveRecord columns
In this post we discuss ways to reduce the amount of data you’re selecting from the database by using dynamic column names
Ever Wondered About Rails Application Templates?
Ever wondered that you run usual rails new my_awesome_app and you get a really fully bootstraped, authentication added, administration added and lot more for you to just start focusing on business logic instead? THIS WRITE UP IS JUST ABOUT THAT…
The autoload Method in Ruby
LINK – The Module#autoload method registers a file path to be loaded the first time that a specified module or class is accessed in the namespace of the calling module or class..
Postgres Arrays vs JSON data types in Rails 5
Which postgres complex data types should be used for what? [Postgres Arrays vs JSON data types in Rails 5]
Ruby from Scratch video Series
We’ve released 12 episodes from our Ruby from Scratch video series. The videos show you the basics of ruby and prepares you for application development using ruby and rails.
Less Known ‘rails commands’
We all use some rails/rake commands in console BUT here are some more less known/used which can be helpful too in some cases. [more inside]
Delegating ActiveRecord scopes
Reuse scopes in parent-child table relationships for clarity and consistency
Using Postgresql To Perform Tasks In A User's Local Time Zone
Did you ever want to complete a recurring task in a user’s local time zone?
Server Administration with Cockpit
Rails in production on your own servers can be intimidating. Cockpit provides a fantastic dashboard for monitoring RAM, storage, packages, and processes like Puma and Sidekiq in production. Check out the Server administration with Cockpit screencast.
Integrate Rails Application with React Using Webpacker Gem
Read our new article and learn how to use webpacker gem to integrate Rails with React.
Optical Character Recognition for Movie Subtitles
How to use Ruby to drive Tesseract and MiniMagic to extract subtitle text from a screenshot: https://aonemd.github.io/blog/extracting-text-from-images-using-ruby [more inside]
A Modern Web Application With Rails
In this article, I give some ideas on how to structure your next application with Rails. Times have changed and here are some suggestions for you and for your next project! [more inside]
Is `Array` the only option for storing elements in Ruby?
Even though using Array is very idiomatic for Ruby, there are other handy classes. Set and SortedSet are parts of the language for some valid reasons.
Serverless Ruby Slack Commands: Fun with AWS Rekognition
This post will detail the steps to get a serverless slack command running on AWS Lambda using the Jets Serverless Ruby framework. We’ll make something fun: a command that takes in a URL, scrapes all the images on the page, filters the images using AWS image recognition, and posts the filtered images to the current slack channel. https://blog.boltops.com/2019/01/14/serverless-slack-commands-with-ruby
Understanding the Eigenclass in less than 5 minutes
LINK – How a given class makes the difference between class-level and object-level methods, variables & constants ? [more inside]
Our approach to parsing changelogs
To be able to display change information directly within our pull requests, we’ve started to parse changelogs from open source projects. Read our blog post on how we’ve approached this problem and what that means for our users, but also for open source authors who write these changelogs.
Who gives a F*** about Rails in 2019?
Let’s face it. Ruby on Rails is old. Really old. But judging by the changes that happen on the tech market it’s an extremely mature technology, so it makes perfect sense to use it in certain cases and applications. [more inside]