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.
Here's what happened at the EuRuKo 2018 conference,
The 35th Ruby conference took place in Vienna, Austria. I’ve summarized my highlights of the 2-day conference in two blog posts, including video recordings of the talks: https://blog.phusion.nl/2018/08/31/euruko-ruby-conference-day-1/ & https://blog.phusion.nl/2018/08/31/euruko-ruby-conference-day-2/
101: Advanced OOP structure in Ruby
In this blog post we will focus on solving a simple task: [more inside]
GraphQL pagination in Rails.
If you are trying to learn how to use GraphQL, there are some basic tips about implementing pagination: http://www.2n.pl/blog/graphql-pagination-in-rails .
Statics: Base class and modules for static models.
Statics it’s a simple gem developed using mostly the dry-rb gems and it helps you have “static” models that get their data from YAML files. [more inside]
MiniI18n - New release with Localization support
I just released a new version (v0.5.0) of MiniI18n gem with localization support for dates, time and numbers. [more inside]
Private and protected in Ruby
As a Ruby method is — behind the scene — a message handler associated with a block of instructions that returns an object, the private and protected policies are strongly correlated with the Ruby message concept.. SEE MORE
Rails… Still?!?!
At the Amsterdam Ruby meetup, Chris Salzberg has us metaprogramming and PJ Hagerty explores a number of Ruby and Rails frameworks: https://blog.phusion.nl/2018/08/30/rails-still/
Build a collaborative playlist over WhatsApp with Rails, Twilio, and Spotify
The WhatsApp API is new, but you can play around with it using Twilio. As an example, here’s how to build a collaborative playlist using Rails and the Spotify and WhatsApp APIs.
active_storage + silent logs
https://github.com/igorkasyanchuk/active_storage_silent_logs if you using active storage you may already seen lot’s of the noise in logs from ActiveStorage about sending files. [more inside]
Ruby on Rails and Node.js compared
Node.js+Express.js or Ruby on Rails? A comparison of two of the most popular choices in the development community. Ruby on Rails and Node.js compared
Exceptional Creatures: SyntaxError!
Ruby’s SyntaxError is raised when encountering Ruby code with an invalid syntax. Meet SyntaxError at Exceptional Creatures
Fat Models, Skinny Jobs
A nod to the tried and true approach from Jamis back in 2006, we keep our Jobs Skinny. And often I just delete the Jobs altogether: https://medium.com/the-set-list/fat-models-skinny-jobs-567fdce62760
Validators for Interactors
How to leverage ActiveModel::Validations to provide easy validations for your Interactors. https://medium.com/reflektive-engineering/validators-for-interactors-a0632494e3d5
Find nearby locations in Rails with Oracle 50x faster
By utilizing spatial index, we can largely reduce the table rows scanned while finding nearby locations by given city’s latitude/longitude. See how SQL query is speed up by 50x. https://hlcfan.github.io/find-nearby-locations-in-rails-with-oracle.html
active_storage + validations
https://github.com/igorkasyanchuk/active_storage_validations this gem is to add validations in Rails models without custom validations. [more inside]
Lets keep our ‘Promise’ in Ruby
Though Ruby world is not new to ‘async’, there are many famous libraries in Ruby which are event-driven like eventmachine and celluloid but ‘async’ is not as main stream in Ruby as it is in other communities like Node.js is quite popular in JavaScript world and RxJava is new hot topic in Android eco system. https://medium.com/@gauravbasti2006/lets-keep-our-promise-in-ruby-e45925182fdc
Running DAG-based workflows using multiple processes, in Ruby
The Jongleur gem is a process scheduler and manager. It allows users to declare a number of executable tasks as Ruby classes, define precedence between those tasks and run each task as a separate process. [more inside]
exists? and blank? under the hood
Should I use exists? or blank? To answer this question we will unpack ActiveRecord and put exists? and blank? methods under the scope. [more inside]
Resolving Rails schema.rb conflicts properly
Schema.rb conflicts can often confuse us. A couple of strategies for handling them, and some general migration tips – Resolving Schema.rb Conflicts Properly
eCommerce Companies Using Rails
What eCommerce companies use Ruby on Rails? We put together a list including Glossier, Inc., BARK, Greetabl, and more.
if you using spring+rspec this is for your
https://github.com/igorkasyanchuk/spring_rspec_commands_addon if you want to re-run specs you need to add “bin/” before “rspec” command. [more inside]
Is Rails still relevant in 2018 ?
Few days ago I’ve received email where I was asked for an advice from a web developer who was considering switching from Ruby to something else. I was asked in the email: [more inside]
The autoload method in Ruby
In this article we’re going to explore the following topics: