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.
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 https://engineering.culturehq.com/posts/2019-01-11-delegating-activerecord-scopes
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? https://scottw.com/using-postgresql-perform-tasks-user-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. https://www.nopio.com/blog/rails-with-react-webpacker-gem/
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. https://frontdeveloper.pl/2019/01/is-array-the-only-option-for-storing-elements-in-ruby/
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]
Hello Serverless with Jets and Dynamoid
Learn how to use Jets framework and Dynamoid to build a simple serverless app: https://dev.to/jalerson/hello-serverless-with-jets-and-dynamoid-3fi8
Best Ruby Gems We Can't Live Without
Hi guys, we have made up a list of Ruby gems that help us in our work, hope you will find this list useful: https://www.codica.com/blog/top-ruby-gems-we-cant-live-without/
Build an API with the Jets Ruby Serverless Framework
I’ll cover how to build a simple API service on AWS Lambda with the Jets Ruby Serverless Framework: https://blog.boltops.com/2019/01/13/build-an-api-service-with-jets-ruby-serverless-framework
Getting started with HTTP caching in Rails
Rails provides a few different methods of HTTP caching out of the box, and one of them is conditional GET requests. I wrote a short article on how you can get started with HTTP caching in Rails.
New kittyverse library - cryptokitties helper classes for cattributes, traits, ...
Hello, I’ve put together a new free (open source) kittyverse library / gem that includes helper classes for cattributes, trait types, traits, genes, genomes and more for cryptokitties and copycats cryptocollectibles (on the blockchain). Happy data wrangling and bits & bytes slicing w/ ruby. Cheers. Prost.
Coinpare v0.2.0
The latest coinpare adds the ability to display comparison between purchased and current cryptocurrency holdings in pie chart format.
TravisCI v3 API Client — "Trav3" v0.2.0 Released!
Trav3 is a convenient API client for TravisCI’s version 3 of their API. Featuring 100% test coverage and currently implements API methods for owners, repositories, builds, jobs, and logs. The rest of the TravisCI API is planned to be implemented in this gem soon and a 1.0 release will be coming.
tty-pie v0.2.0
The latest tty-pie adds a way to format legend labels however you like including custom currency formatting sequence for handling money display.
API Rails apps in 2019
A handful of points to consider when building and deploying an API-only Rails app in 2019 that you might use as a microservice or to drive a single-page app. [more inside]
Ruby Conferences 'n' Camps in 2019 Update - What’s Upcoming? What's News?
Hello, I’ve updated the Ruby Conferences ‘n’ Camps in 2019 - What’s Upcoming? Calendar page @ Planet Ruby. What’s News? Added wroclove.rb (in March in Wrocław, Poland), Balkan Ruby (in May in Sofia, Bulgaria), RubyConf Thailand (in September in Bangkok, Thailand) and more. Happy meeting up with rubyists in 2019. Cheers. Prost. PS: Do you have a favorite conference? Lets give a shout-out to EuRuKo 2019 (in June in Rotterdam, the Netherlands). Call for talks / proposals open (until the end of February).
minitest-fork_executor
I built minitest-fork_executor to work around test interference issues I run into when working on active_record_doctor. I also published an article explaining the reasoning behind the gem: How to Reduce Test Interference in Minitest