Rails Solid Queue for Background Jobs
Solid Queue is the new default background job system in Rails 8.0, built with simplicity and performance in mind.
Articles covering software design, technical insights, and leadership lessons.
Solid Queue is the new default background job system in Rails 8.0, built with simplicity and performance in mind.
Efficient pull request reviews are key to faster releases and better collaboration. This post covers best practices to streamline the process, reduce backlogs, and improve your team's workflow.
Learn how to normalize attributes in Rails 7.1 with the new ActiveRecord::Base::normalizes API.
Learn to use Action Text to full extent with Rails API only application
Learn how to redact sensitive query parameters in GraphQL with Rails.
Introducing Boring Generators gem which aims to make your development faster by delegating boring setups to the gem.
An approach to write test cases for the generators added to reduce efforts and automate your workflow.
Learn how to setup your application to do multipart file upload to Active Storage using GraphQL-ruby and Apollo
File upload in GraphQL is a tricky problem to solve. Solve the file upload problem using direct upload to Active Storage Rails.
Before Rails 6.1 to add comparison operators in where clause you need to use raw SQL notation. Rails 6.1 adds support for where clause with comparison operator.
Before Rails 6.1 the enum default were configured on the database level but now Rails 6.1 allows to configure the enum defaults on the model.
Today I learned to render Rails partial or block with a layout. This helps reduce the duplication of code and break HTML in smaller components.
Stuck in an issue while trying turbo_frame_tag in tables to replace a row with newly added record. TIL turbo_frame_tag doesn't work within table HTML tag
Stimulus Rails naming conventions
Learn about running rails model and scaffold generator with Action Text rich text field attributes to configure the model and scaffold views with appropriate Action Text settings.
Learn about running rails model and scaffold generator with Active Storage attachment and attachments field attributes to configure the model and scaffold views with appropriate active storage settings.
Active Storage reduces the latency by tracking the Active Storage variants in the database.
GraphQL-ruby has built-in scalar types. These may not always fit our needs, that when custom scalar types come to rescue.
Error handling in GraphQL is a tricky problem to solve. Tricky but solvable.
Rails 6 introduces a Action Text for rich text content and editing. To add Action Text to React you need to use Basecamp's Trix editor.
Rails add Many monad to Active Support and Active Record Relation to ease the deep chaining on collection.
Rails 6.1 makes it easier to add conditional class names to the HTML element.
Rails 6 adds touch option to has_one association.
Rails 6.1 dirty tracks the previous attribute value after the model is saved or reset.
Add infinite scrolling load data continuously and eliminating the need for pagination in Apollo GraphQL and GraphQL-ruby
Polymorphic types in Rails are used to add belongs to many associations. GraphQL-ruby resolves polymorphic types using Union
Add cursor based Relay-style pagination in GraphQL queries to restrict the amount of data fetched by the query
Add offset based pagination in GraphQL queries to restrict the amount of data fetched by the query
Rails 6 allow adding comments to the SQL queries generated by the ActiveRecord::Relation instance.
Rails 6 adds delete_by, destroy_by methods to find and destroy/delete ActiveRecord::Relation records.
Rails 6 now by default adds negative enum scopes to filter records easily.
Rails 5 makes the attribute API public to converts the attribute value to an appropriate Ruby type.
Ruby 2.6 Range#cover? accepts Range object as argument and returns boolean if the object is comparable and within range.
Adding Webpack to manage app-like JavaScript modules in Rails 5.1 using Webpacker
In Rails 5, ActiveRecord models no longer inherit from ActiveRecord::Base. ActiveRecord models now inherit from Application Record.