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.
DeployPin - stick some tasks around a deployment.
Gives posibility to pin some tasks at different deployment stages (useful when you want to avoid doing non-db-related things inside migrations). https://github.com/skcc321/deploy_pin/
FlowTrace – remote app inspecting tool. Declare feature steps and receive params.
Just allows you to set contexts and send requests to the local machine. https://github.com/kirillshevch/flow_trace
ezmetrics v1.0.6 - a simple gem for capturing and displaying Rails metrics.
This gem captures and aggregates Rails application metrics such as:
duration, views, db, queries, status
and stores them for a variable timeframe. [more inside]
sportdb v2.0 - tool for reading datasets (leagues, clubs, matches, ...) into SQL DB
Hello, I’ve updated the sportdb command line tool / library that lets you read in (parse)
datasets (e.g. leagues, clubs, match schedules, etc.)
in plain text into your SQL database of choice (e.g. SQLite, PostgreSQL, etc.). For example, to build yourself a copy for the English Premier League 2019/20 season type: $ sportdb new eng2019-20. That’s all. This will read in the match schedule and much more from the /england dataset. Happy data and text wrangling with ruby. Enjoy the beautiful game. PS: See the football.db League Quick Starter Sample - Mauritius Premier League if you want to start from scratch (zero) with your very own league.
Mongoid - Inheritance: change embedded document's type via nested attributes
I published a post describing some issues I faced (and a workaround) when trying to change an embedded document’s type via nested attributes in Rails.
10 New Things in Active Record
Take a quick dive with me and we’ll take a look at 10 new additions to Active Record in Rails 6.
Testing Times & Dates with Rails
Rails comes with some test helpers to make testing times and dates repeatable and reliable. Learn How to test Times and Dates in Rails
Argentinian validations
For all the argentinian developers out there (or others developing apps for argentinian people), I created a gem to validate specific user information from Argentina like CBU and CUIT. Check the gem here.
Closure in Ruby and Javascript
In this ARTICLE we are going to discuss about closures in Ruby and Javascript.
Who was hiring at RubyConf 2019?
List of companies hiring at RubyConf 2019 organized in Nashville. [more inside]
Filtration and Searching in Rails
In this ARTICLE we are going to discuss how to implement filtration or searching workflows step by step in Rails by keeping our Rails app clean and dry. [more inside]
where.not with nil in ActiveRecord Rails
In this ARTICLE, you are going to know how the “.not” with where query behaves and sometimes gives unexpected results.
Instance Variables vs Class Instance Variables in Ruby
In this article, we will going to discuss how the instance variable reacts when associated with the class itself and when with the object of class. Ruby
web_pipe: one-way pipe rack application builder
https://github.com/waiting-for-dev/web_pipe web_pipe is a modular rack application builder through a pipe of operations on an immutable struct. In order to use in conjunction with dry-rb ecosystem, see also dry-web-web_pipe. If you want to use it with a Rails project, don’t miss docs for the rails extension.
Pulling the trigger: Update counter caches without Active Record callbacks
A complete how-to on using database triggers in a Rails app for ensuring that aggregated values filtering is fast, consistent, and avoids nasty race conditions. No Active Record callbacks involved!
In Continuous Integration, Run Fast and Fundamental Tests First
It’s great to keep your CI/CD pipeline fast, but you don’t need it to run all tests to get feedback on WIP. [more inside]
Ruby refinements and the sorbet type checker
A quick look at how well ruby refinements play with the sorbet type checker. https://trippett.co.uk/2019/11/18/ruby-refinements-and-the-sorbet-type-checker/
Rails 6 + React JS Application setup with simple CRUD operation
Setting up Rails application with ReactJS usually takes some time. Setting up React Router and Redux for Front-end is an essential part of using React with Ruby on Rails. [more inside]
A beginners' introduction to Ruby classes and objects
When you start learning Ruby, you often hear that everything is - or evaluates as - an object. Here’s an introduction for junior developers who want to get the gist of objects and classes in Ruby. 👉 A beginners’ introduction to Ruby classes and objects
MissileEmitter: A littile fun tool for metaprogramming
Hi, I made my first ruby gem: MissileEmitter, It can help you define configurable DSL at the class level, enjoy it :)
Working with Capistrano: Tasks, Roles, and Variables
The Working with Capistrnao: Tasks, Roles, and Variables is a first article in a series where my goal is to provide core concepts and explore more advanced features of Capistrano whilst writing solutions to common problems maintaining web applications in Ruby. Enjoy!