Learning

Blog & Tutorials

Keep yourself up to date with our articles on Ruby on Rails, Ruby, Dart & Flutter.

Rails 7 adds ActiveRecord::Base#previously_persisted?

rails-7 ruby-on-rails

If you have not installed Rails 7 yet, please follow our other article on How to install rails 7 to...

Rails 7 adds ActiveRecord::Relation#excluding

rails-7 ruby-on-rails

If you have not installed Rails 7 yet, please follow our other article on How to install rails 7 to...

How to install Rails 7

rails-7 ruby-on-rails

Initializing a new project as Rails 7 project is very easy, though beginners find it very difficult to do it...

Default Enum in Rails 6

rails-6 ruby-on-rails

Rails 6 provides a way to define default enum value. Let’s see how it works with an example. For this...

Ruby 2.7 adds Enumerable#tally

Ruby

After introducing the Enumerable#tally method in Ruby 2.7-preview updates. #tally as the name suggests gives out the number of occurrences...

How to rename column name in Rails

rails-6 ruby-on-rails

Rails rename_column Rails provides a simple method rename_column which can be used in a migration. Example: Say you have a...