Tutorials
Reducing Solidus Memory Usage with jemalloc | Super Good Software
At Super Good, we work on Solidus stores of all types: from stores with custom third-party API integrations to subscriptions to custom PDF generation systems. One common thing across all client stores is the desire to provide customers with a stab...
Simple Repository Pattern for Ruby on Rails - DEV Community
In the famous book "Patterns of Enterprise Application Architecture", Martin Fowler define a repository with the following phraseA repository performs the tasks of an intermediary between the domain model layer and data mapping.I'm a visual person...
Creating A Private Ruby Gem for Ruby on Rails 7 - YouTube
Ever wondered how to create a gem for your Ruby on Rails projects? Well here you go, an entire tutorial dedicated to creating a private Ruby gem!Checkout my course(s) at: https://learn.deanin.comSource:https://github.com/Deanout/deep_freez...Join ...
Using GIVEN-WHEN-THEN on RSpec test classes - DEV Community
Using Given-When-Then in RSpecRSpec provides a way to use Given-When-Then in test classes by using aliases. Aliases are a way to define new names for existing RSpec methods. By using aliases, developers can write tests that use Given-When-Then syn...
Handling Decimal Precision in Rails - DEV Community
Ruby on Rails allows us to specify how precise we want decimals to be by defining precision and scale in database migrations. Rails also provides a way of adding front-end validation to forms that accept decimal values. I’ll be using an expense mo...