How JWT Tokens Work in Ruby on Rails APIs

When you’re building a Ruby on Rails API, security is crucial. One key aspect of ensuring security is understanding how JWT (JSON Web Tokens) tokens work. In this guide, we’ll break down the basics of JWT tokens in Ruby on Rails APIs with easy-to-understand explanations and practical examples. What’s a JWT Token? JWT tokens act … Read more How JWT Tokens Work in Ruby on Rails APIs

Ruby on Rails : Callbacks V/S Observers

Observers ๐Ÿง Observer lives longer.It can be attached & detached at any time.It is used when method is not directly associated to life cycle of Active Record objects.If you want to create observer with command-line you need to add gem first because without observer gem you couldnโ€™t run any observer generator command so first add … Read more Ruby on Rails : Callbacks V/S Observers