btihen
btihen
Posts
All Blogs
Ruby
Elixir
EDgility
Crystal
Tech
Tutorials
All Tutorials
Ash Framework
Publications
Contact
About
Light
Dark
Automatic
Rails Framework
Rails 5.2 - Command Objects and PORO Attributes
In a complex application validations, models, controllers can quickly get complex - command objects can simplify this - especially as of Rails 5.2
Bill Tihen
Last updated on Sun, 17 Mar 2024
Code
,
Ruby Language
,
Rails Framework
Rails 7.0 Base Setup
update GEMS library gem update –system be sure bundler is installed gem install bundler update Bundler library bundle update –bundler update Ruby rbenv install 3.1.1 rbenv global 3.1.1 or asdf install ruby 3.
Bill Tihen
Last updated on Sun, 05 May 2024
Code
,
Ruby Language
,
Rails Framework
Passwordless Authentication with Devise
Devise offers a lot of useful User management, but has no Passwordless Strategy - here’s how to do it
Bill Tihen
Last updated on Sun, 05 May 2024
Code
,
Ruby Language
,
Rails Framework
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).
Bill Tihen
Last updated on Sun, 17 Mar 2024
Code
,
Ruby Language
,
Rails Framework
Rails 6.x+ Auth with MagicLinks using Rails Signed GlobalIDs
Several simple approaches to password-less rails authentication
Bill Tihen
Last updated on Sun, 17 Mar 2024
Code
,
Ruby Language
,
Rails Framework
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).
Bill Tihen
Last updated on Sun, 05 May 2024
Code
,
Ruby Language
,
Rails Framework
Strategy Pattern and Lambdas
With when Controllers need to trigger a chain of complex activities, one approach to keeping the code workable is to use Command Objects, the Command Pattern and even Lambdas
Bill Tihen
Last updated on Sun, 05 May 2024
Code
,
Ruby Language
,
Rails Framework
Squished String Type (Rails 5/6)
String inputs that strip away leading, trailing and double spaces using typed virtual attributes
Bill Tihen
Last updated on Sun, 06 Nov 2022
Code
,
Ruby Language
,
Rails Framework
Rails 6.x - Framework Agnostic Associations - part 2
Framework Agnostic Associations - Data models that work across many frameworks
Bill Tihen
Last updated on Sun, 17 Mar 2024
Code
,
Ruby Language
,
Rails Framework
Rails 6.x - Framework Agnostic Associations - part 2
Framework Agnostic Associations - Data models that work across many frameworks
Bill Tihen
Last updated on Sun, 17 Mar 2024
Code
,
Ruby Language
,
Rails Framework
«
»
Cite
×