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.
My experience upgrading Ruby on Rails from 3.2 to 4.2
I collected the experience and the lessons I learned during the process of upgrading Rails from 3.2 to 4.2 along with some undocumented changes and solutions for them. Read more
How to Store Secure Encrypted Data in Rails without using Gems
Storing sensitive data in plaintext can seriously harm your internet business if an attacker gets hold of the database. Encrypting data is also a GDPR friendly best practice. In this tutorial I will describe a simple way to securely encrypt, store, and decrypt data using built in Ruby on Rails helpers instead of external dependencies. Read more
strong_password gem hijacked
strong_password v0.0.7 contained an exploit: how it worked, and what you can do about it.
[Screencast] Introduction to Dragon Ruby
Dragon Ruby is toolchain that allows developers the ability to build apps and games in Ruby. Giveaway - Follow @driftingruby and retweet this to enter to win. Event will end by August 1st, 2019. https://www.driftingruby.com/episodes/introduction-to-dragon-ruby
ib_ruby_proxy
Invoke Interactive Brokers API from Ruby. Github repo
Save typing in rails/console with this 3 packs
User rails_console_toolkit to add super-fast shortcuts to fetch records, benchmark your code, reload!, and exit.
Read more in the README... Read more
12 Factor Rails Settings
This blogpost provides some clarifications on what it means to apply the 12-Factor App methodology for managing settings and how to properly use it in your Ruby on Rails application.
Data sync from DB to Gsheet
This article explains step by step procedure to sync your data between DB and Google Sheet Read more
GIS on Rails
This article explains the basics of GIS for a web developer and how we can import GIS data and query using PostGIS Read more
Deploy AnyCable with Capistrano and systemd
First of all, if you still don’t know what is AnyCable than probably you never tried websockets in Rails. “WTF???” you probably will say, and you are right. Yes, we have ActionCable since Rails 5.x, but you really believe Ruby is suitable for real time web? I have bad news for you. Read more
Active Admin vs Forest Admin comparison
A comprehensive guide for RoR devs looking for a ready-to-use admin panel solution to manage their data
nice_http make Http connections nice and powerful
NiceHttp – simplest library for accessing and testing HTTP and REST resources. Get http logs and statistics automatically. Use hashes on your requests. Access JSON even easier.
Automatically annotate your code with Sorbet type signatures
For example, run your test suite and magically get type signatures!
Deploying a Jekyll-based blog to Google Cloud Run
I recently migrated my Jekyll-based blog to Cloud Run, the new serverless platform from Google. I posted an article on why you might use serverless for a Jekyll site, and how to do the deployment. https://daniel-azuma.com/blog/2019/07/01/deploying-my-blog-to-google-cloud-run
In-App Payments Backend with Roda
This tutorial shows how to use Roda as the backend to take mobile payments with Square:
Example Gitlab Pipeline Configuration for Rails Projects
Gitlab Pipeline for Rails can be a useful alternative for other applications like Jenkins and TeamCity. Want to learn how it works? See an example configuration.
Rails Request Lifecycle | Gryffondor.in
Do you know how request is processed in its lifecycle from browser to web server to again browser. What happens with request at each stage? Who handles request at what level? Let’s find out. Read more
Managing old migrations with Squasher
Rails have a gem to merge old lengthy migrations into single migration, called squasher. Let’s see by example.