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.
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. https://johnbeatty.co/2019/02/27/stimulus-js-tutorial-interactive-deletes-with-rails-ujs/
Rack::Queries
A page in your rack-based application that allows quick execution of pre-built queries. https://github.com/CultureHQ/rack-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! https://www.rubyguides.com/2019/02/ruby-code-examples/
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
https://github.com/igorkasyanchuk/rails_pdf 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. https://www.codewithjason.com/write-characterization-tests/
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 - https://www.railsmine.net/2019/02/benchmark-jekyll-build-time-mri-jruby.html
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.
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. [more inside]
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. [more inside]
(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.
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)
https://www.reddit.com/r/ruby/comments/at0tig/set_up_ubuntu_1804_for_ruby_on_rails_developer/
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 http://5by5.tv/rubyonrails/261