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.
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
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
Ruby Quiz Code Challenge #1 - Tic-Tac-Toe Game Contract - And the Solution is...
Hello, Spoiler Alert! Here’s the (secure) ruby reference solution in its full glory for the (Secure) Ruby Quiz - Code Challenge #1 - Create a 3x3 Tic-Tac-Toe Player vs Player Game Contract. Compare the sruby code to the EOS.IO C++ spaghetti “monster”? I guess the C++ version is at least 10x faster :-). Cheers. Prost. Happy coding and (crypto) blockchain contract scripting with sruby.
Refactoring with Design Patterns - The State Pattern
In this article we talk about a pattern that can be very useful when we need to control the flow of a set of events of our objects: The State Pattern a.k.a Finite State Machine. [more inside]
Debugging Rails Mails With Mailhog
Hey guys, we have a new blog article about debugging emails with mailhog. Check it out at: https://arsfutura.co/magazine/debugging-rails-mails-with-mailhog