RSSAmplifier

Blog

Ruby on Rails Tips

Ruby on Rails Tips: No-nonsense solutions to your ruby/rails problems. Short, clear, and straight to the point.

ror.tipsRSS feed ↗10 posts

Latest posts

How to add counter cache with custom column in Rails?

This article explains how to add counter cache with a custom column in Rails.

How to execute raw SQL in rails?

This article explains how to write and execute raw SQL in rails.

How to drop a table in rails?

This article explains how to drop a table in rails - the recommended way.

How to add devcontainer in rails?

This article explains how to add devcontainer in rails.

How to install ActiveStorage in a rails application.

This article explains how to install ActiveStorage in a Rails application and how to use it to upload files.

How to shuffle an array in ruby?

This article explains how to shuffle an array in ruby.

How to change database adapter of a Rails application?

This article explains how to change the database adapter of a Rails application with a single command.

How to pass arguments to rake tasks?

This article explains how to pass multiple arguments to the rake tasks.

How to check if an index already exists in rails?

This article explains efficient way to check if an index already exists on a table in rails.

How to check if a table already exists in rails?

This article explains how to check if a table already exists in a table in rails.