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.
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) Read more
Rails 6 adds negative scopes for all enum values
Rails 6 adds negative scopes for all enum values today. Read more
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. Read more
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. Read more
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. Read more
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. Read more
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. Read more
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.
Visualized desktop workspaces flow
This article is not dedicated to anything Ruby. But it’s more about how I boost my productivity when working on projects. Example I’m providing there is Ruby on Rails related. So I hope it will help web-developers of any technology. Read more
Interview with Adam Wathan on TailwindCSS, Ruby, and more
This episode of Remote Ruby, we’re joined by Adam Wathan, a full-stack developer, Full Stack Radio podcast host, and author of Tailwind CSS. We spend some time sharing his journey into programming, how he got started with Laravel (PHP framework), how Ruby has influenced his software writing and the story behind Tailwind CSS. Read more
(Secure) Ruby Quiz - Challenge #3 - Create a Powerball Mega Millions Lottery Contract
Hello, It’s Friday. (Secure) Ruby Quiz Time! Let’s use America’s most popular lottery - Powerball Mega Millions - and make it provable fair by - surprise, surprise - putting the machinery on the blockchain with a contract script in (secure) ruby. Let’s warm-up with the simplest possible lottery first. Join us. Question or comments welcome. Note, the ruby-talk mailing list is the “official” sruby channel. Cheers. Prost.
One Ruby file to rule them all: inline gems and inline ActiveRecord migrations
I experiment with inline gems and inline ActiveRecord migrations in order to produce a self-contained, single-file Ruby web app. Not for every use case, but an interesting experience. Read more
Slide Show (S9) Updated - Write Your Slides in Text w/ Kramdown (2.0+) Formatting
Hello, I’ve updated Slide Show (S9) - the free web alternative to PowerPoint and Keynote in Ruby - that lets you write your slides / talks / presentations in text w/ markdown (kramdown 2.0+) formatting conventions. Jekyll (and GitHub Pages)-compatible template packs include s6, reveal.js, impress.js,shower.js and some more. Cheers. Prost.
set up Ubuntu 18.04 for Ruby on Rails developer (Revised 2019 Cheatsheet)
Digging into Shopify’s Rails Architecture
I talk one-on-one with Shopify Technical Lead José Albornoz about their Rails architecture and what it’s like programming on such a large, storied Ruby on Rails application
Building Serverless Applications on AWS using the Ruby Runtime
The Ruby Runtime in AWS Lambda now makes it possible to create Lambda’s using Ruby very easily! These Lambda’s can then be used to support a Serverless App. If you like/hate the guide, let me know in the comments. Hope you like it :) Guide: How to Build a Serverless Application on AWS using Ruby