-
How we made our Rails test suite about 75 percent faster
One of my recent tasks has been to take the current test suite for a large-ish Rails app and speed it up as much as possible. This is the story of how . -
Authenticating in Rails
If you want users on your web app, you need to be able to authenticate (verify they are who they say they are) and authorize (give the users access to . -
How to redact sensitive parameters in GraphQL and Rails?
Every application holds a sensitive or private information that needs to be protected from being leaked. Most application will writes details to the lo. -
Growing Rails - Utilizing Form Models for complex validations or side effects
Rails by default has a couple of “buckets” to put your code into. Some people claim that this is not sufficient when building larger apps, other people. -
Omniauth with google_ oauth2 on rails
what if you could set up your account with a third party logging? when I first heard this I was so excited to get started and use this gem. Omiauth gem. -
Rails Models Cheat Sheet
ReferenceRails Models Cheat SheetCheat Sheet Maker... -
Open Graph image generation on the fly with Ruby
At Wannadocs, we're generating Open Graph tags for each article to make it looks as attractive as possible when sharing on social media or messengers.I. -
Vim-Rails Cheat Sheet
Config
:Einitializer <file> # config/initializers/*.rb :Elocale # config/locales/*.yml :Eenvironment # application.rb :Eenvironment development # config/environments/*.rb
...
-
Making Hotwire play nice with ViewComponent
Have you ever wondered if you could use hotwire with view_component instead of partials. If you have, maybe tried and failed, welcome here.By default h. -
Associations
After learning Ruby on Rails, I learnt that associations was the most crucial aspect, without it...nothing works.Original ProjectThe first project I cr.