Rails Posts

Rails 6.x Auth with MagicLink using SecureRandom Token

Passwordless Authentication is very convenient for users and generally as secure as passwords (according to many articles as long as the email access-links are short-lived - as email is not very secure).

Rails 6.x+ Auth with MagicLinks using Rails Signed GlobalIDs

Several simple approaches to password-less rails authentication

Rails 7.0alpha2 Test-drive

I thought it would be fun to test the new alpha version of rails - but I always forget how to do this without upgrading an existing projects. Discover the Rails Pre-release versions gem list rails --remote --prerelease -e –remote - checks the rubygems site - not the locally installed versions –prerelease - find pre-release versions -e - use an exact match (many packages have rails in the name).

Squished String Type (Rails 5/6)

String inputs that strip away leading, trailing and double spaces using typed virtual attributes

Rails 6.x - Framework Agnostic Associations - part 2

Framework Agnostic Associations - Data models that work across many frameworks

Rails 6.x - Framework Agnostic Associations - part 2

Framework Agnostic Associations - Data models that work across many frameworks

Rails 6.x - Framework Agnostic Associations - part 1

Framework Agnostic Associations - Data models that work across many frameworks

Rails 6.1 - Hotwire with Lazy Loading

A simple Single Page App using Rails and flash messages with Hotwire

Rails 6.1 - Hotwire with Modals

A simple Single Page App using Rails and Hotwire - integrated with a modal forms

Rails 6.1 - Hotwire with StimulusJS

A simple Single Page App using Rails and flash messages with Hotwire