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 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:
Rails Console Magic Tricks
Seven techniques to improve a developer’s experience during a Rails Console session. https://medium.com/@lfv89/rails-console-magic-tricks-da1fdd657d32
Testing APIs in Ruby: An overview
A couple of different methods to test APIs with RSpec. Describes WebMock, VCR, and building a custom fake server. https://blog.schembri.me/post/testing-apis-in-ruby-with-rspec/
Discover Rails: Active Record
This article is about how to make your own ActiveRecord gem. Follow the article, I will introduce how to make this gem step by step. From building the gem to testing the feature of rspec. Hope you are interesting in this topic! https://medium.com/@johnsonzhan/discover-rails-active-record-cc15140adfe7
Best image uploader for Rails — Revisited
Three years ago I wrote about how to choose the right uploader gem for your project. Since the time the original article has been published, all mentioned libraries got updated, one got deprecated, and two new libraries have appeared. I feel it’s time to revisit this topic. https://blog.stanko.io/best-image-uploader-for-rails-revisited-3b3b7618cc4c
Rails on Docker: Using an Entrypoint File in your Containers
A quick tutorial post describing how to use an entrypoint file to avoid “...server already running. Check tmp/pids/server.pid.” (and other issues) when developing and scaling Rails apps in Docker containers. https://www.chrisblunt.com/rails-on-docker-using-an-entrypoint-file-containers/
Doorkeeper 5.0.0 released
Doorkeeper, the OAuth 2 / OpenID provider for Ruby on Rails and Grape applications, is released under 5.0.0 major version with a bunch of new features and bugfixes: API mode, PKCE flow, Public/Private clients, request hooks, Rake tasks for tokens management, improved configuration options and more.
Protecting a Rails App with Passenger and Nginx
Explaining the complete process of password protecting your website with Passenger and Nginx @ Protecting a Rails App with Passenger and Nginx
Replr: A single line REPL for your favorite languages & libraries.
Built on top of Docker, Replr is an easy way to get a REPL with your favourite language stack. Supports Ruby & gems to start! [more inside]
EuRuKo (European Ruby Konference) 2018 @ Vienna (Austria) - 24+25th/Aug - Live Stream
Hello, the EuRuKo 2018 just kicked off this morning in Vienna, Austria. Big thanks to Ramón Huidobro (@SenorHuidobro), Super Princess Pilar (@Tamacodechi) and the org team for making in happen. Follow along with the EuRuKo 2018 live stream on YouTube for all talks!. Cheers. Prost.