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 PaaS Hosting in Multi-Cloud
Explore the possibilities of Ruby PaaS hosting services from Jelastic Multi-Cloud: easy deployment, automatic vertical and horizontal scaling, pre-configured stacks with versioning, out-of-box frameworks support, intuitive management and lots of other benefits https://jelastic.com/blog/ruby-paas-hosting/
Ruby on Rails vs Node JS
Node.js and Ruby on Rails are two popular solutions used in web development. Check which technology is better for your app Ruby on Rails vs Node.js comparision
tty-prompt v0.19.0 fresh look
The newest tty-prompt changes the UI elements look & feel to be even more intuitive. It now lets you navigate the select and multi_select prompts by page. It also allows you to limit the number of selected items in the multi_select prompt. Enjoy!
Client Side Form Validation With Stimulus and Rails
Client side form validation is fairly easy to do with a framework such as Angular or Ember, but how can we get client validation with just Rails and Stimulus? With a sprinkling of Javascript, we can see just how easy it is to add some client side validation. [more inside]
Redirecting to static webpacker Content With Rails
With the release of Rails 6, webpacker is the new default compilation pipe for Javascript assets. Learn how to create a standalone widget file which redirects to webpacker compiled assets. [more inside]
simple helper to get proper redirect :back url
how to get proper URL to :back page: https://github.com/igorkasyanchuk/awesome_back_url [more inside]
rubocop-config-prettier
I created rubocop-config-prettier gem to turn off all rules that are unnecessary or might conflict with prettier plugin ruby.
Ruby 2.7 adds Enumerable#filter_map
Ruby adds filter_map as a shorthand for filter+map [more inside]
Ruby mixins explained
How to use ruby mixins for drying up code. https://whatraghulearned.today/2019/05/23/ruby-mixins-explained/
A toolset for building serverless Ruby apps with AWS Lambda
A set of commands to help you develop, locally test, and deploy serverless Ruby apps to AWS Lambda. https://www.cookieshq.co.uk/posts/a-useful-tool-for-building-serverless-ruby-apps-with-aws-lambda
How to Play MP3 Files with Ruby, VLC, and the FFI Module
Did you know that you can use C library functions from Ruby without writing a line of C code? Read this article to learn how: https://www.rubyguides.com/2019/05/ruby-ffi/
A rocket launcher called Sidekiq 🚀
This post is about how Sidekiq Pro has changed InvoiceXpress asynchronous operations. Simple configuration tutorial, tips and best practices. [more inside]
A Modular RuboCop
Here’s a short overview of the recent efforts to break down RuboCop into multiple gems thus improving the structure and the long-term maintainability of the project.
Rails 6 deprecates update_attributes and update_attributes!
Rails 6 has deprecated update_attributes and update_attributes! in favor of update and update! [more inside]
Serverless Ruby on AWS Lambda with the Jets framework
AWS Lambda released support for Ruby back in November 2018. In this post you will learn how to get started building serverless Ruby applications on Lambda using the Jets framework by building an SMS service that replies with dad jokes.
Currency Input Masking with Cleave.js and Money gem in Ruby On Rails
I wrote a small article describing my setup of providing my app users with a better experience while entering money related data. You can read it here
Exposing permissions in GraphQL APIs with Action Policy
This post discusses authorization aspects of GraphQL apps, mainly the ways to expose users permissions to frontend applications (with the help of a newly published action_policy-graphql gem).
Kittyverse Gem Update - Let's build a CryptoKitties gene / genome reader
Hello, I’ve updated the kittyverse library / gem to add the machinery to slice & dice the kitty / digital cat genome / genes. See the let’s build a cryptokitties gene / genome reader in 10 lines of ruby code sample. Happy (crypto) coding with ruby.
RailsConf 2019 video coverage of Confreaks (link to youtube)
Confreaks (https://confreaks.tv/) apparently released coverage of RailsConf 2019. I hope there is more to come. The link to the youtube playlist is: https://www.youtube.com/playlist?list=PLE7tQUdRKcyaOq3HlRm9h_Q_WhWKqm5xc
action_policy-graphql gem
This gem provides integration for using Action Policy as an authorization framework for GraphQL applications (built with graphql ruby gem).
This integration includes the following features: [more inside]