Gem (1 blogmarks)

← Blogmarks

elvinaspredkelis/signed_params: A lightweight library for encoding/decoding Rails request parameters

https://github.com/elvinaspredkelis/signed_params

This is a clever idea for a small gem — allow request query parameters to be encoded and decoded automatically in the controller to avoid exposing certain kinds of information. This uses Rails’ Message Verifier module.

I learned about this from Kasper Timm Hansen.