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.
monitor server events in real-time
https://github.com/igorkasyanchuk/rails_live monitor server events in real-time. [more inside]
Small Ruby Refactorings #1
Improving readability by replacing complex logic with methods: https://medium.com/@extendsmymind/small-ruby-refactorings-1-bc33d819490c
The Best Features of Active Storage
Rails 5.2 finally delivers file upload functionality straight out-of-the-box with a brand new core library called Active Storage. I’ve been using it in client work and side projects since the beta release, and the experience has been fantastic! If you haven’t had a chance to try it yet or you’re debating whether to use it in your next project, check this out: http://www.carlosramireziii.com/the-best-features-of-active-storage.html
The redo Keyword in Ruby
In the following article, we’re going to explore the following topics:
Smuggle gem! Exports and imports with ease
It’s a gem to manage exports and imports with ease, separating the logic from the models, resulting in a cleaner codebase. [more inside]
Send monit alerts to slack
Monit2Slack is a small, but useful, gem that sends monit alerts to a slack channel via a webhook.
A command line interface gem for caniuse.com
The cani gem allows you to browse caniuse.com data directly in the terminal. It can show feature support for a specific browser version or display all features with per-browser support. It also ships with auto completions for zsh, bash and fish shells. Visit the github repo for more information. Happy caniuse terminal-browsing :)
refine & using keywords in Ruby
In this article, we’re going to explore the following topics:
Measure performance trends of Ruby code
benchmark-trend will help you estimate the computational complexity of Ruby code by running it on inputs increasing in size, measuring their execution times, and then fitting these observations into a model that best predicts how a given Ruby code will scale as a function of growing workload. Enjoy!
SmsKit
SmsKit offers a streamlined API for sending text messages through any supported provider. [more inside]
FCM push notification with rails and ionic
This post will walk you through how to send push notifications using google FCM, rails and ionic 3.x [more inside]
How I got my first pull request merged on Rails-core
A guide on what developers can do to level up their open-source contributions - while still working a full time day job https://schwad.github.io/ruby/rails/community/2018/09/06/how-i-got-my-first-pull-request-merged-on-rails-core.html
Queue Up and Thread Safely
How a bug changed my mind about thread safety on Ruby https://medium.com/connected-living/queue-up-and-thread-safely-db896a2eae94
Using Rails Session Cookies for API Authentication
Avoid the security perils of storing an API access token in localStorage by using session cookies to authenticate users of a Rails 5 API. https://pragmaticstudio.com/tutorials/rails-session-cookies-for-api-authentication
Top 19 Ruby gems you can’t miss in 2018
Best Ruby gems for smooth web development: https://prograils.com/posts/top-19-ruby-gems-you-cant-miss-2018
Local SSL for Rails 5 development and system tests
I recently set up a Rails 5 app for local development and system tests over SSL with wildcard domains—and lived to tell the tale. https://rossta.net/blog/local-ssl-for-rails-5.html
How to collect, customize, and manage Rails application logs
This post talks about getting the most out of your Rails application logs and further enhancing them with the Lograge gem: https://www.datadoghq.com/blog/managing-rails-application-logs/
Dockerizing a Rails Application
If you are wondering how to get started with Docker and Rails, this video got you covered: https://youtu.be/3aal4zlBi5w [more inside]
Nectarine - a parallel map in Rails using Active Job
Parallel processing in Ruby and Rails is still fraught with problems. Thought maybe an easy way out is just to use our Job queue. Here’s Nectarine a proof of concept doing parallel processing just using Active Job before returning control to the main thread: https://www.rockstarcoders.com/parallel-map/
Rack Explained For Ruby Developers
Would you like to know what goes on behind the scenes of Rails, Sinatra, and other Ruby web frameworks? Then this article is for you! https://www.rubyguides.com/2018/09/rack-middleware/
Count articles by category on search in Ruby on Rails
Have you ever wanted to calculate how many articles will be left in a certain category after search? In this blog post, I will show you how to use elastic aggregations to achieve this. Count articles by category on search in Ruby on Rails