Ruby in Rails

Ruby, Rails, Ruby on Rails Tutorials

  • Home
  • Rails
  • Ruby
  • About
GitHub icon LinkedIn icon
Subscribe

Read secrets using AWS secret manager in Rails

Storing secrets in a version control system is not a good idea. Rails provides a way to store credentials in an encrypted manner. In such approach, we need to just store secret key

Akshay Mohite Akshay Mohite 3 min read

Find performance bottlenecks using Rails logs

Rails logs provide useful information indicating where queries are being fired from along with any custom logging information. We can utilise the query logs indicating line numbers to identify performance bottlenecks.

Akshay Mohite Akshay Mohite 4 min read

Split Rails routes into multiple files

Rails routes file can become lengthy if the application becomes huge. It can be difficult to manage routes especially if we have multiple namespace and route action names are similar across namespaces. Splitting

Akshay Mohite Akshay Mohite 2 min read

Rails N+1 query optimization to get records counts in PSQL

Performance of the Rails application becomes slower if the application has a lot of N+1 queries. In this article, we will go through a performance optimization that removes N+1 queries to fetch recourd

Akshay Mohite Akshay Mohite 4 min read

How to fix user controlled method execution - Brakeman

Brakeman is a free static vulnerability scanner tool that helps you find security issues in your Rails application. In this tutorial, we will learn how to fix user controlled method execution security warning.

Akshay Mohite Akshay Mohite 3 min read

Define keyword arguments when defining methods with boolean arguments

When calling methods with boolean arguments does not explain what exactly is the argument about. Rubocop has a cop that suggests to define keyword arguments when defining methods with boolean arguments.

Akshay Mohite Akshay Mohite 1 min read
Page 1 of 23 Older Posts »
Ruby in Rails © 2023
Latest Posts Github Twitter LinkedIn

Subscribe to Ruby in Rails

Stay up to date! Get all the latest posts delivered straight to your inbox