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.
Gracefully integrate Reactjs with Ruby on Rails in SaaS Applications
Hey guys, check out my first blog on React. Give it a read, short article on how you can kickstart Rails applications with React as front-end framework. [more inside]
Ruby Conference Thailand
We are happy to announce that we will have the first Ruby conference in Thailand [more inside]
How to implement Stripe Connect in Rails
How to allow your users to connect a Stripe account in order to accept payments. [more inside]
toggl.com -> gitlab.com time sync utility
Ruby console application called gitloggl, calculates total time you’ve currently spent on issue at gitlab and posts time tracks to gitlab with the diff between toggle and gitlab.
Ruby Together is looking for a Head of Growth
Ruby Together helps support a lot of critical Ruby infrastructure and tools (e.g. Bundler and RubyGems) and they’re looking for a Head of Growth to help engage with the community more both online and at events, meetups, etc.
enums 1.0 library / gem - safe enumeration types for ruby
Hello, I’ve put together a new enums library / gem for safe enumeration types in ruby. Yes, enums are just a set of symbolic keys bound to unique integer numbers. Why not just use symbols :-) or constants? Do we really need a new enum type and (yet another) library? Good point. Let the ruby meta-programming magic work for you :-). Cheers. Prost. PS: The new enums 1.0 library is part of the safe data structures series.
ActionCable vs. AnyCable: which one to choose?
ActionCable vs. AnyCable: which one to choose? In this article, we compared them and analyzed their respective performances 📈 Let’s see the results! [more inside]
Stimulus.js Tutorial: Interactive Deletes with Rails UJS
By wrapping the deletable element in a controller and hooking into the Rails-UJS callbacks, you can make your page feel fast, even while the network request and response occur in the background. This tutorial is an attempt to make Rails’ remote deletion mechanism, which uses UJS, feel more immediate.
Rack::Queries
A page in your rack-based application that allows quick execution of pre-built queries.
CryptoZombies Code School - Build Your Own (Decentralized) Game in (Secure) Ruby
Hello, The original CryptoZombies is an interactive (free online) code school that teaches you how to write contracts in Solidity through coding your very own crypto-collectible from scratch step-by-step. If anyone is interested - I try to convert the JavaScript-like contracts and samples to (secure) ruby.
So far I’ve converted the first three curriculum chapters to runnable (secure) ruby code, see
zombies_ch1.rb,
zombies_ch2.rb,
zombies_ch3.rb. If you have any ideas (questions or comments)
on how to convert JavaScript-like Solidity contracts
to ruby let us know. Cheers. Prost.
7 Interesting Ruby Code Examples
Looking for some new Ruby tricks, patterns & methods? I wrote an article for you!
Ruby 2.7 adds shorthand operator for Object#method
Ruby 2.7 adds experimental shorthand operator for Object#method. This allows method object access using :, like File.:basename which is similar to File.method(:basename) [more inside]
Rails 6 adds negative scopes for all enum values
Rails 6 adds negative scopes for all enum values today. [more inside]
Create PDF from HTML/CSS/JS
is a new gem to generate PDF files. Easy way. Build in with template starters for you to start faster.
How to: Create and install SSL certificates with ease – a Capistrano recipe (revised)
After almost 4 years, I finally wrote a new Ruby/Rails article. [more inside]
Sail 3.0.0 released!
Sail is a lightweight Rails engine that brings an admin panel for managing configuration settings on a live Rails app. [more inside]
How I write characterization tests
When I want to write tests for legacy code I don’t understand, I turn to the technique of characterization testing. Here’s how I do it.
store_model: a gem for handling JSON-backed attributes as ActiveRecord models
StoreModel allows to work with JSON-backed database columns in a similar way we work with ActiveRecord models. For instance, if you have a model Product with a jsonb column called configuration, you can access configuration fields using product.configuration.color instead of product.configuration["color"] with a type-casting powered by Attributes API. [more inside]
8 Ruby frameworks that aren’t Rails
There are many other options out there for Ruby developers, that aren’t Rails. The majority of us have heard of Sinatra or Padrino, but there’s a ton of other (usually micro) frameworks like Cuba or Hanami out there. 8 Ruby frameworks that aren’t Rails
Using a trace to visualize the internals of Rails
I wanted to show how the different parts of Rails, it’s dependencies and your application code fit together. Explore the annotated trace and see each of the 2041 method calls made by a Rails server to respond to a request.
Messages on Rails Part 1 - Introduction to Kafka and RabbitMQ
Microservices, Service-Oriented Architecture (SOA) and in general, distributed ecosystems, have been on hype in the last several years. And that’s for a good reason! At certain point, The Majestic Monolith “pattern” might start causing issues, both from the purely technical reasons like scalability, tight coupling of the code if you don’t follow Domain-Driven Design or some other practices improving modularity, maintenance overhead, and also from organizational perspective since working in smaller teams on smaller apps is more efficient than working with huge team on an even bigger monolith which suffers from tight coupling and low cohesion. However, this is only true if the overall architecture addresses the potential problems that are common in the micro/macro-services world. One of these problems I would like to focus on is communication between apps and how the data flows between them. [more inside]
Benchmark Jekyll Build Time - Ruby MRI vs JRuby
My Jekyll site has better build time performance with Ruby MRI -
I really love how the new "welcome to rails" image is more inclusive
I was playing with the latest beta of Rails and happened to notice the welcome to Rails image has got more inclusive. It is fantastic to see such a well used framework doing stuff like this. [more inside]
How to install a beta version of Rails
Eager to try out Rails 6 but don’t know how to start a new project with it? This short guide will help by showing you some gem flags we can play with to get beta versions of gems onto our machines.