ShakaCode blog - rails

Search
Maximizing Code Quality with Rails Pre-Commit and Pre-Push Hooks

By utilizing pre-commit and pre-push hooks, developers can automate various checks and tasks that contribute to maintaining high code quality standards.

9 Apr 2024Dotby Alkesh Ghorpade
Streamlined Syntax - Unveiling the Power of Slim Template Language

Slim is a templating language designed to streamline the view syntax to its fundamental elements while avoiding cryptic complexity.

3 Apr 2024Dotby Alkesh Ghorpade
Level Up Your Ruby Code with Draper Decorators

Draper provides a simple, elegant way to separate presentation and model logic in Rails applications.

2 Apr 2024Dotby Alkesh Ghorpade
Rails introduce powerful ErrorReporter#unexpected for controlled error reporting

Rails offers a game-changer ErrorReporter#unexpected for developers facing tricky precondition violations.

13 Dec 2023Dotby Alkesh Ghorpade
Rails 7.1 introduces a new option to exclude all custom methods generated by the ActiveRecord::Enum

Rails 7.1 lets you turn off the creation of custom methods for enum attributes, giving you more control over your models.

12 Dec 2023Dotby Alkesh Ghorpade
Rails adds the ability to pass the expires_at option to ActiveStorage::Blog#signed_id

The expires_at option for ActiveStorage Blob signed IDs allows you to specify when the signed ID will expire. This can be useful for sharing sensitive files or files you don't want publicly accessible forever.

20 Oct 2023Dotby Alkesh Ghorpade
Rails 7.1 adds support for Array#intersect? to ActiveRecord::Relation

In Rails 7.1, the Array#intersect? method can be used to find if two ActiveRecord::Relation objects intersect or not.

22 Aug 2023Dotby Alkesh Ghorpade
Rails 7.1 adds ActiveJob#perform_all_later to enqueue multiple jobs at once

Rails 7.1 adds perform_all_later to ActiveJob that enqueues many jobs at once, eliminating repeated Redis roundtrips.

18 Jul 2023Dotby Alkesh Ghorpade
Rails 7.1 introduces deliver callbacks for ActionMailer

Rails 7.1 adds before_deliver and after_deliver callbacks to ActionMailer to hook into the lifecycle events of the mail delivery.

11 Jul 2023Dotby Alkesh Ghorpade
Rails 7.1 makes ActiveRecord query cache an LRU

With Rails 7.1, the ActiveRecord query cache uses the LRU strategy and removes the least recently used queries.

5 Jul 2023Dotby Alkesh Ghorpade
Manage Rails app business logic using ActiveInteraction gem

Let's dive into managing Rails application-specific business logic using ActiveInteraction.

29 Aug 2020Dotby Alkesh Ghorpade
RailsConf 2020 -- Webpacker, It-Just-Works, But How?

How does the Webpacker gem provide "it-just-works" webpack integration with Rails? That simplicity did not come easily. The rich functionality, complexity, and rapid evolution of the webpack ecosystem necessitated extension points beyond a simple Ruby config file.

5 May 2020Dotby Justin Gordon
Enums and Queries in Rails 4.1, and Understanding Ruby

Understanding Ruby and how enums work in Rails 4.1.

22 Oct 2014Dotby Justin Gordon
Storing or Excluding Node Modules in Rails Git Repositories

Should you store your node_modules in your git repository or configure git to ignore the node_modules directory.

28 Sep 2014Dotby Justin Gordon
Pry, Ruby, Array#zip, CSV, and the Hash[] constructor

Example showing how pry demonstrates the usefulness of Array#zip with CSV

15 Sep 2014Dotby Justin Gordon
Rails Gem Upgrading Tips and Strategies

Best-practices for upgrading Ruby on Rails gems to newer versions while saving time and avoiding headaches.

13 Sep 2014Dotby Justin Gordon
Specific Issues Upgrading Gems to Rails 4.1, RSpec 3, and Twitter Bootstrap 3.2

This article describes some tougher issues I faced when upgrading to Rails 4.1 and RSpec 3.

12 Sep 2014Dotby Justin Gordon
Fast Tests: Comparing Zeus with Spring on Rails 4.1 and RSpec 3

A comparison of using Zeus vs Spring with Rails 4.1 along with the parallel-tests gem.

9 Sep 2014Dotby Justin Gordon
Pry, Ruby, and Fun with the Hash Constructor

Example showing how pry can help one better understand the useful Ruby Hash[] constructor.

17 Aug 2014Dotby Justin Gordon
Rocking with tmux, tmuxinator, Guard, Zeus, and iTerm2 for Rails Development

tmux, tmuxinator, and iTerm2 tips for productivity with Rails Development

11 Mar 2014Dotby Justin Gordon
Capybara PhantomJs Poltergeist Rspec Tips

9 Mar 2014Dotby Justin Gordon
Simple Form and Disabling Buttons on Submit by Default

Fixing RecordNotUnique errors by turning on disable_with by default for all submit buttons using simple_form.

23 Feb 2014Dotby Justin Gordon
Migrating from Capybara-Webkit to Poltergeist-PhantomJs

Tips for efficiently migrating a test rspec test suite from capybara-webkit to poltergeist-phantomjs

6 Aug 2013Dotby Justin Gordon
Testing Error Handling

How do ensure that your application properly handles errors, especially when relying on third parties, such as payment processors? Is it easy to verify that the right things happen when the wrong things happen?

11 May 2013Dotby Justin Gordon
Strategies for Rails Logging and Error Handling

Clean logging and error handling is a critical aspect of a RoR app. What’s a good strategy? Why does this matter?

8 May 2013Dotby Justin Gordon
Are you looking for a software development partner who can
develop modern, high-performance web apps and sites?
See what we've doneArrow right
woman programming
hand on board adjusting a fluxogram