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.
Convert an ActiveRecord object into the fixture
Small but useful blog post on how to convert an ActiveRecord object into the fixture
How I've Built a Profitable Slack Bot as a Side Project in Rails
I’ve built a Slack bot in Ruby on Rails and it is profitable. In this blog post I will describe what I did and tools I used to create, promote and monetize a simple SAAS product. [more inside]
Ruby-Devscoop: issue #4
Avoid Short-Circuit Evaluation During OR/AND Expression.. see more
Differences Between Procs and Lambdas
lambdas are strict on argument number. If the call doesn’t respect the exact number of argument then an ArgumentError is raised.. see more
Installing Ruby and Rails on Windows (For RailsGirls)
Small guide on how to install ruby and rails for RailsGirls in 2018 Here
SOLID Principles #2 - Open/Closed Principle
Five-part series of blog posts about SOLID Principles. This one is about the second of them - Open/Closed Principle: [more inside]
SOLID Principles #1 - Single Responsibility Principle
Five-part series of blog posts about SOLID Principles. This one is about the first of them - Single Responsibility Principle: [more inside]
A PR has been submitted
Kudos to you, person who contributed to a Ruby repository. I am actually thankful that you did not just create an issue but you actually tried to solve the problem by creating a Pull Request. Now my job, is 10x easier since I don’t have to stop the other things that I am trying to do. [more inside]
Programming Blockchains Step-by-Step Guide in Ruby. Let's Start w/ (Crypto) Hashes...
Hello, I’ve started a new (free, open source ) guide titled “Programming Blockchains Step-by-Step”. Let’s build blockchains from scratch (zero) step by step in ruby and. Let’s start with crypto hashes (Digest::SHA256.hexdigest)… Happy blockchaining. Cheers. Prost..
How to parse command line options with Ruby Slop
Learn how to parse command line options in your Ruby scripts with the slop gem:
Memoizing in Ruby
This has been written about before, and will no doubt be written about again. Memoizing in Ruby addresses the oft-seen footgun of memoizing falsy values. Spoiler alert: you don’t need a gem, you just need some basic Ruby knowledge.
Speed up and improve your RSpec tests in 4 simple steps
Use shared examples, custom matchers, Rails transactional tests feature and lightweight factories to speed up your RSpec tests READ MORE
The correct emails configuration in Rails
I wrote an article with the best practices in configuring your emails in Rails. This small article contains some quick hints and suggestions on how to configure the different environments and to properly test emails [more inside]
FasterPath v0.3.9 released!
Did you know the Rails web page load time spends about two thirds of its time handling your assets file paths? Would you like to improve your sites performance by over 50%? FasterPath may just help you do that. FasterPath rewrites file path handling methods from Ruby and C in to Rust for better performance. FasterPath includes binary releases so you won’t need to compile it on your server to use, provided you’re using a Ruby version we’ve pre-compiled for. Now including faster than C code for File.basename, File.extname, and File.dirname.
Are you tired of flaky automated browser tests?
A key problem with browser tests are that changes to HTML style and structure cause unintended test failures and contribute to flaky tests. The UI Interactors gem makes it simple to write automated browser tests using selenium-webdriver - tests which are resilient to HTML structure and style changes. Use the gem with your favorite testing framework. The gem’s readme is comprehensive. It’s still early days, but if you have suffered from the problem, I think you will find the gem useful.
SearchFlip - Chainable ElasticSearch Queries
I’d like to introduce the SearchFlip gem. Create dead-simple index classes that correspond to ElasticSearch indices and use its elegantly chainable DSL to manipulate, query and aggregate them. While being version 1.0.0 it’s used in production for years already. Great docs included. https://github.com/mrkamel/search_flip
Contribute to RVM, Homebrew and Exercism, May 11-12 at ROSS conf Amsterdam
ROSS conf Amsterdam gives (Ruby) open source software maintainers the platform to introduce their project to an audience of first time as well as existing contributors. After 15 minute introductions to the project, pressing issues and requests, the conference day is reserved for hands-on programming (or contributing through updating documentation or adding artwork!) and pairing with the maintainers in small groups. To conclude the hackathon the maintainers present data on bugs fixed, issues assigned, contributions made etc. [more inside]
Blockchain vs (Hyper) Ledger - Inside the ledger-lite library / gem for transactions
Hello, yesterday’s Hyperledger talk notes titled Blockchain vs (Hyper) Ledger – Inside (Hyper) Ledger Lite - Add Transactions One Block at a Time and Balance the Accounts (Books) with Ruby. Cheers. Prost. PS: What’s your (favorite) way or (what libraries/gems to use) to build / design / write blockchains / transactions in Ruby?
My Toolkit for Writing and Promotion of Blog Posts
I would like to describe a couple of tools which I use to create, release and promote my blog posts. If you already are a technical blogger, or maybe still only thinking about setting up your place on the internet, you might find some valuable tips for your own toolkit. [more inside]
An overview of Ruby GUI development in 2018
During the development of a desktop application, I evaluated most of the Ruby GUI toolkits, and prototyped the application with three of them. This article presents a summary of what I’ve experienced. [more inside]
Build Presentations / Talks w/ (Strutured) Text with Jekyll Themes and Slideshow (S9)
Hello, yesterday’s Austria.TXT talk notes titled Build Presentations / Talks (‘n’ Handout Notes) w/ (Structured) Text w/ Formatting in Markdown and Jekyll Themes (Bespoke.js, Reveal.js, S6, …) ‘n’ the Slideshow (S9) Website Compiler. Cheers. Prost. PS: What’s your way to build / design / write presentations / talks with Jekyll and friends (in Ruby)?
Ruby 2.5 adds Exception#full_message method
Ruby 2.5 has added Exception#full_message method to retrieve a string expression of an exception, formatted in the same way with that Ruby prints an uncaught exception out. Read more at - .
My favourite Ruby and Rails resources
I’ve put together a list of books, courses, tutorials, screencasts, etc… that I’ve used and loved while developing in Ruby and Ruby on Rails.
Rails EventStore - better APIs coming
Rails Event Store v0.26 is here with new, nicer APIs. Let’s have a look at some of those changes and how they affect subscribers and aggregates.