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.
Released gem that integrates Rails and countries gem!
Send us a PR! Let’s together improve the quality of this integration. Thanks! [more inside]
Released new version of gem timeliness-i18n!
Help us to provide more translations, in locales that is still missing. The gem provides i18n messages for timeliness gem. [more inside]
Ruby Quiz - Challenge #15 - Generate the ₿itcoin Address from the Public Key
Hello, I’ve posted a new ruby quiz. Challenge #15 - Generate the ₿itcoin (Base58) Address from the (Elliptic Curve) Public Key. Start from scratch or, yes, use any library / gem you can find. Post your code snippets (or questions or comments) on the “official” Ruby Quiz Channel, that is, the ruby-talk mailing list. Cheers. Prost
boilerplate api project with rails5, sequel, apitome
A boilerplate api project with rails5, using sequel for faster data retrieval + apitome based auto api-doc generation [more inside]
Building a RubyGem with Steve Klabnik
In this latest edition of Past Rubies, we revisit building a gem from scratch five years ago this week, and also look at using Rails tutorials from 2005.
Reporting from ephemeral containers in production
Walkthrough of a vim/tmux workflow to report from Rails production environments
Announcing Pakyow v1.0
I’m happy to announce the v1.0 release of Pakyow! Years ago we set out to design a better way to build for the web. The result is a full stack of open-source frameworks that bring a simpler, design-first approach to let you create more with what you already know. Read the announcment.
How environment check works in Ruby on Rails?
In this article, we’re going to explore the following topics:
SudoRails - New release v0.5.0
A new version of SudoRails (https://github.com/markets/sudo_rails) v0.5.0 has been published 🚀. Mainly, includes a new feature to allow “infinite” sudo sessions and more styling customizations. See examples here.
Continuous Integration Explained
This guide is for you if you’re getting started with CI, or looking to level up with best practices.
Smuggle v0.6.0 released (gem for CSV imports and exports)
Smuggle helps you manage exports and imports with ease, separating the logic from the models.
Private Key, Public Key & Address - (Elliptic Curve) Crypto Programming w/ Ruby Notes
Hello, I’ve put together some notes and code samples / scripts about (elliptic curve) crypto programming w/ ruby that covers private key, public key and address. Enjoy the crypto summer. Cheers. Prost.
Adding devise_token_auth to an existing Rails app
If you want to introduce devise token authentication to your existing rails app which is already using devise this is for you [more inside]
GraphQL on Rails: A Three-Part Guide
The ultimate beginner-friendly walkthrough guide on creating GraphQL applications on Rails with React and Apollo by Evil Martians is now complete.
Different Ways to Set Attributes in ActiveRecord (Rails 5)
A cheat sheet outlining the different ways to set ActiveRecord attributes in Rails 5
Tips for writing fast Rails
Minor adjustments in the code can lead to major performance improvements. In this article I talk about the use of ActiveRecord::Batches#find_each [more inside]
Debugging MySQL lock errors in Ruby on Rails
New week new bug to hunt down! A day after our last deployment at work, a new type of error started rising like a great wave. Random SQL update queries started failing at random with the following error: ActiveRecord::StatementInvalid: Mysql2::Error: Lock wait timeout exceeded; try restarting transaction: UPDATE users SET … [more inside]
Automatic HTTP interception & debugging for Ruby
Open a terminal, run a Ruby command, immediately see & debug everything your Ruby code is sending:
6 things missing from Rails
This is my list of patterns or types of objects you will see in Rails applications. http://kenglish.co/blog/2019/5/6-things-missing-from-rails
Why should you choose Ruby on Rails for your MVP?
The ever-growing worldwide community (around 4,000 contributors on GitHub) and the availability of gems are what still makes Ruby on Rails an suitable, fast and cost effective way to build MVPs in the eyes of startup owners.