What is Ruby doing on Rails?
Hello, you're reading Infinum Ruby Drops, bringing you the latest Ruby and Rails related news straight to your inbox every week.
Simple approach to Rails 5 API authentication with Json Web Token
With JWTs, you can save it in sessions or cookies without worrying about it being manipulated by the user or another third party, thanks to it being signed by the server and secret key

Read More
Ruby

Virtus is a popular Ruby gem described as attributes on steroids for plain old Ruby objects. I saw it being used in many API based applications so when I was building API for my app I chose the virtus too

Starting out with a software project, authentication is usually quite a simple problem to solve. You simply create a users table in the database, collect users’ usernames and passwords, and authenticate users against it

I have been coding in Ruby for last 6 years and it is my strongest language by far. However, as I was preparing to interview at top tech companies, I faced a big question - which programming language should I use?

Rails
In this post we will take a look at a way to improve sample Rails 5.1.3 System Test using POROs, collaborators, delegation and modules.

Using the ENUM method is widely considered “best practice” in the Rails community, and there are plenty of articles written about how to use them

Have you ever worked in a web application with many custom user interface (UI) components? How were they structured? I will share some tips and tricks on how to organize them in a RoR application.

Beyond Ruby
Six weeks ago, I launched my website Key Values on Hacker News and got a glimpse into what Hacker News readers value most when looking for an engineering job

No, that’s not a typo. The fear and stress were gut-wrenching. I couldn’t think of anything else, it was all-consuming. There was no way to relax, to get my mind off of it

Yes, for most projects you should write automated tests. You should if you value your time anyway. Much better to catch a bug locally from the tests than getting a call at 2:00 in the morning and fix it then

Blast from the past
I was debugging Mechanize the other day, and thought it would be handy to have a graph of objects in memory and they’re relationship with each other. So I put together a simple script that outputs a Graphviz file illustrating what the object points to

Gem of the week
Super simple PDF invoicing in Ruby

Curated by Infinum's Rails team.
Infinum Rails Team · 156 2nd St · San Francisco CA 94105 · USA
Unsubscribe | View in browser