Tutorials






Guide to devise_token_auth: Simple Authentication in Rails API
I wanted to create an authentication system for my Rails API, but one thing about APIs is that you can't use sessions or cookies for authentication.So instead, I used the gem devise_token_auth, which uses tokens. Put simply, this is how it works: ...

A library for bulk insertion of data into your database using ActiveRecord.
activerecord-import is a library for bulk inserting data using ActiveRecord.One of its major features is following activerecord associations and generating the minimal number of SQL insert statements required, avoiding the N 1 insert problem. An e...

![[ALPHA] TraceSpy is a wrapper around TracePoint](/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTIxODIsInB1ciI6ImJsb2JfaWQifX0=--b9a99e2cdbd21f6e9887073d063a7e520c43252c/open-uri20190208-16430-1ypkbvs.avif)

Using the Find module to count the LOC of a Rails application
In this post, we’re going to explore the content of this library and use it for counting the LOC* of a Rails application. This means that this library is packaged with Ruby and it’s available.Traversing a directory tree is a pretty common tasks in...